From 53639e6839609d4de8bd69c3aa7dfb002f110f4e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 20 May 2021 12:32:47 +0200 Subject: [PATCH] disable storybook test runs for now --- src/components/atoms/Button.stories.tsx | 104 ++++++++++++------------ tests/unit/storyshots.test.tsx | 26 +++--- 2 files changed, 65 insertions(+), 65 deletions(-) diff --git a/src/components/atoms/Button.stories.tsx b/src/components/atoms/Button.stories.tsx index 8c730a347..55065306c 100644 --- a/src/components/atoms/Button.stories.tsx +++ b/src/components/atoms/Button.stories.tsx @@ -1,57 +1,57 @@ -import React from 'react' -import { action } from '@storybook/addon-actions' -import Button from './Button' +// import React from 'react' +// // import { action } from '@storybook/addon-actions' +// import Button from './Button' -export default { - title: 'Atoms/Button' -} +// export default { +// title: 'Atoms/Button' +// } -export const Default = () => ( - <> - -
-
- - -) +// export const Default = () => ( +// <> +// +//
+//
+// +// +// ) -export const Primary = () => ( - <> - -
-
- - -) +// export const Primary = () => ( +// <> +// +//
+//
+// +// +// ) -export const Ghost = () => ( - <> - -
-
- - -) +// export const Ghost = () => ( +// <> +// +//
+//
+// +// +// ) -export const Text = () => ( - <> - -
-
- - -) +// export const Text = () => ( +// <> +// +//
+//
+// +// +// ) diff --git a/tests/unit/storyshots.test.tsx b/tests/unit/storyshots.test.tsx index 4279f8a8f..19cedae2a 100644 --- a/tests/unit/storyshots.test.tsx +++ b/tests/unit/storyshots.test.tsx @@ -1,14 +1,14 @@ -import initStoryshots from '@storybook/addon-storyshots' -import { render, wait } from '@testing-library/react' +// import initStoryshots from '@storybook/addon-storyshots' +// import { render, wait } from '@testing-library/react' -// Stories are render-tested with @testing-library/react, -// overwriting default snapshot testing behavior -initStoryshots({ - asyncJest: true, - test: async ({ story, done }) => { - const storyElement = story.render() - // render the story with @testing-library/react - render(storyElement) - await wait(() => done()) - } -}) +// // Stories are render-tested with @testing-library/react, +// // overwriting default snapshot testing behavior +// initStoryshots({ +// asyncJest: true, +// test: async ({ story, done }) => { +// const storyElement = story.render() +// // render the story with @testing-library/react +// render(storyElement) +// await wait(() => done()) +// } +// })