From 72f58da6e43622945b2237b240bfcb73524ecf83 Mon Sep 17 00:00:00 2001 From: Jonathan del Strother Date: Sat, 30 Jan 2021 15:30:23 +0000 Subject: [PATCH] POC snapshots using jest's test.concurrent --- .../src/api/StoryshotsOptions.ts | 1 + .../src/api/ensureOptionsDefaults.ts | 2 + .../storyshots-core/src/api/index.ts | 2 + .../src/api/snapshotsTestsTemplate.ts | 24 ++- .../src/__snapshots__/App.stories.storyshot | 29 +++ .../__snapshots__/Lifecycle.stories.storyshot | 7 + .../__snapshots__/button-1.stories.storyshot | 46 +++++ .../__snapshots__/button-10.stories.storyshot | 46 +++++ .../__snapshots__/button-11.stories.storyshot | 46 +++++ .../__snapshots__/button-12.stories.storyshot | 46 +++++ .../__snapshots__/button-13.stories.storyshot | 46 +++++ .../__snapshots__/button-14.stories.storyshot | 46 +++++ .../__snapshots__/button-15.stories.storyshot | 46 +++++ .../__snapshots__/button-16.stories.storyshot | 46 +++++ .../__snapshots__/button-17.stories.storyshot | 46 +++++ .../__snapshots__/button-18.stories.storyshot | 46 +++++ .../__snapshots__/button-19.stories.storyshot | 46 +++++ .../__snapshots__/button-2.stories.storyshot | 46 +++++ .../__snapshots__/button-20.stories.storyshot | 46 +++++ .../__snapshots__/button-21.stories.storyshot | 46 +++++ .../__snapshots__/button-22.stories.storyshot | 46 +++++ .../__snapshots__/button-23.stories.storyshot | 46 +++++ .../__snapshots__/button-24.stories.storyshot | 46 +++++ .../__snapshots__/button-25.stories.storyshot | 46 +++++ .../__snapshots__/button-26.stories.storyshot | 46 +++++ .../__snapshots__/button-27.stories.storyshot | 46 +++++ .../__snapshots__/button-28.stories.storyshot | 46 +++++ .../__snapshots__/button-29.stories.storyshot | 46 +++++ .../__snapshots__/button-3.stories.storyshot | 46 +++++ .../__snapshots__/button-30.stories.storyshot | 46 +++++ .../__snapshots__/button-31.stories.storyshot | 46 +++++ .../__snapshots__/button-32.stories.storyshot | 46 +++++ .../__snapshots__/button-33.stories.storyshot | 46 +++++ .../__snapshots__/button-34.stories.storyshot | 46 +++++ .../__snapshots__/button-35.stories.storyshot | 46 +++++ .../__snapshots__/button-36.stories.storyshot | 46 +++++ .../__snapshots__/button-37.stories.storyshot | 46 +++++ .../__snapshots__/button-38.stories.storyshot | 46 +++++ .../__snapshots__/button-39.stories.storyshot | 46 +++++ .../__snapshots__/button-4.stories.storyshot | 46 +++++ .../__snapshots__/button-40.stories.storyshot | 46 +++++ .../__snapshots__/button-41.stories.storyshot | 46 +++++ .../__snapshots__/button-42.stories.storyshot | 46 +++++ .../__snapshots__/button-43.stories.storyshot | 46 +++++ .../__snapshots__/button-44.stories.storyshot | 46 +++++ .../__snapshots__/button-45.stories.storyshot | 46 +++++ .../__snapshots__/button-46.stories.storyshot | 46 +++++ .../__snapshots__/button-47.stories.storyshot | 46 +++++ .../__snapshots__/button-48.stories.storyshot | 46 +++++ .../__snapshots__/button-49.stories.storyshot | 46 +++++ .../__snapshots__/button-5.stories.storyshot | 46 +++++ .../__snapshots__/button-50.stories.storyshot | 46 +++++ .../__snapshots__/button-6.stories.storyshot | 46 +++++ .../__snapshots__/button-7.stories.storyshot | 46 +++++ .../__snapshots__/button-8.stories.storyshot | 46 +++++ .../__snapshots__/button-9.stories.storyshot | 46 +++++ .../__snapshots__/button.stories.storyshot | 46 +++++ .../cra-dynamic-import.stories.storyshot | 7 + .../fast-refresh.stories.storyshot | 16 ++ .../force-rerender.stories.storyshot | 22 +++ .../long-description.stories.storyshot | 21 +++ .../src/__snapshots__/test.stories.storyshot | 7 + .../__snapshots__/welcome.stories.storyshot | 175 ++++++++++++++++++ .../src/concurrentshots.test.js | 7 + 64 files changed, 2665 insertions(+), 1 deletion(-) create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/App.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/Lifecycle.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-1.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-10.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-11.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-12.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-13.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-14.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-15.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-16.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-17.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-18.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-19.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-2.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-20.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-21.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-22.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-23.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-24.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-25.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-26.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-27.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-28.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-29.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-3.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-30.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-31.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-32.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-33.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-34.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-35.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-36.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-37.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-38.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-39.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-4.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-40.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-41.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-42.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-43.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-44.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-45.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-46.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-47.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-48.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-49.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-5.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-50.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-6.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-7.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-8.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button-9.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/button.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/cra-dynamic-import.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/fast-refresh.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/force-rerender.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/long-description.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/test.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/__snapshots__/welcome.stories.storyshot create mode 100644 examples/cra-kitchen-sink/src/concurrentshots.test.js diff --git a/addons/storyshots/storyshots-core/src/api/StoryshotsOptions.ts b/addons/storyshots/storyshots-core/src/api/StoryshotsOptions.ts index dc5d542feb79..0bda2a9fd713 100644 --- a/addons/storyshots/storyshots-core/src/api/StoryshotsOptions.ts +++ b/addons/storyshots/storyshots-core/src/api/StoryshotsOptions.ts @@ -24,6 +24,7 @@ export interface StoryshotsTestMethod { export interface StoryshotsOptions { asyncJest?: boolean; + concurrentJest?: boolean; config?: (options: any) => void; integrityOptions?: IOptions | false; configPath?: string; diff --git a/addons/storyshots/storyshots-core/src/api/ensureOptionsDefaults.ts b/addons/storyshots/storyshots-core/src/api/ensureOptionsDefaults.ts index 25adf62c8343..cd5f685616c0 100644 --- a/addons/storyshots/storyshots-core/src/api/ensureOptionsDefaults.ts +++ b/addons/storyshots/storyshots-core/src/api/ensureOptionsDefaults.ts @@ -30,6 +30,7 @@ function ensureOptionsDefaults(options: StoryshotsOptions) { const { suite = 'Storyshots', asyncJest, + concurrentJest, storyNameRegex, storyKindRegex, renderer, @@ -43,6 +44,7 @@ function ensureOptionsDefaults(options: StoryshotsOptions) { return { asyncJest, + concurrentJest, suite, storyNameRegex, storyKindRegex, diff --git a/addons/storyshots/storyshots-core/src/api/index.ts b/addons/storyshots/storyshots-core/src/api/index.ts index 601697ff89d4..b4ac2ac52ccc 100644 --- a/addons/storyshots/storyshots-core/src/api/index.ts +++ b/addons/storyshots/storyshots-core/src/api/index.ts @@ -34,6 +34,7 @@ function testStorySnapshots(options: StoryshotsOptions = {}) { const { storybook, framework, renderTree, renderShallowTree } = loadFramework(options); const { asyncJest, + concurrentJest, suite, storyNameRegex, storyKindRegex, @@ -86,6 +87,7 @@ function testStorySnapshots(options: StoryshotsOptions = {}) { snapshotsTests({ data, asyncJest, + concurrentJest, suite, framework, testMethod, diff --git a/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts b/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts index deef13602eb8..e21f6f418372 100644 --- a/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts +++ b/addons/storyshots/storyshots-core/src/api/snapshotsTestsTemplate.ts @@ -3,7 +3,14 @@ import { describe, it } from 'global'; import { addSerializer } from 'jest-specific-snapshot'; -function snapshotTest({ item, asyncJest, framework, testMethod, testMethodParams }: any) { +function snapshotTest({ + item, + asyncJest, + concurrentJest, + framework, + testMethod, + testMethodParams, +}: any) { const { name } = item; const context = { ...item, framework }; @@ -21,6 +28,21 @@ function snapshotTest({ item, asyncJest, framework, testMethod, testMethodParams ), testMethod.timeout ); + } else if (concurrentJest === true) { + console.log('concurrent', name); + it.concurrent( + name, + () => + new Promise((resolve, reject) => { + testMethod({ + story: item, + context, + ...testMethodParams, + }); + resolve(); + }), + testMethod.timeout + ); } else { it( name, diff --git a/examples/cra-kitchen-sink/src/__snapshots__/App.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/App.stories.storyshot new file mode 100644 index 000000000000..e869322f8eb3 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/App.stories.storyshot @@ -0,0 +1,29 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` +
+
+ logo +

+ Welcome to React +

+
+

+ To get started, edit + + src/App.js + + and save to reload. +

+
+`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/Lifecycle.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/Lifecycle.stories.storyshot new file mode 100644 index 000000000000..be99a5e77232 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/Lifecycle.stories.storyshot @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` +
+ Lifecycle methods are logged to the console +
+`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-1.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-1.stories.storyshot new file mode 100644 index 000000000000..d2da84c8c162 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-1.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` + +`; + +exports[` 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-10.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-10.stories.storyshot new file mode 100644 index 000000000000..d2da84c8c162 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-10.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` + +`; + +exports[` 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-11.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-11.stories.storyshot new file mode 100644 index 000000000000..d2da84c8c162 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-11.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` + +`; + +exports[` 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-12.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-12.stories.storyshot new file mode 100644 index 000000000000..d2da84c8c162 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-12.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 1`] = ` + +`; + +exports[` 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-13.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-13.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-13.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-14.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-14.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-14.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-15.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-15.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-15.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-16.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-16.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-16.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-17.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-17.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-17.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-18.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-18.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-18.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-19.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-19.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-19.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-2.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-2.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-2.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-20.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-20.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-20.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-21.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-21.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-21.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-22.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-22.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-22.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-23.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-23.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-23.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-24.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-24.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-24.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-25.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-25.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-25.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-26.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-26.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-26.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-27.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-27.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-27.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-28.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-28.stories.storyshot new file mode 100644 index 000000000000..b30d7ddb983c --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-28.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots App full app 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-29.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-29.stories.storyshot new file mode 100644 index 000000000000..aab090d9dd66 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-29.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots App full app 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-3.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-3.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-3.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-30.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-30.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-30.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-31.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-31.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-31.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-32.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-32.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-32.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-33.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-33.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-33.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-34.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-34.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-34.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-35.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-35.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-35.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-36.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-36.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-36.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-37.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-37.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-37.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-38.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-38.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-38.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-39.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-39.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-39.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-4.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-4.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-4.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-40.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-40.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-40.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-41.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-41.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-41.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-42.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-42.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-42.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-43.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-43.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-43.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-44.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-44.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-44.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-45.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-45.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-45.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-46.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-46.stories.storyshot new file mode 100644 index 000000000000..69147808c3eb --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-46.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-47.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-47.stories.storyshot new file mode 100644 index 000000000000..4f06db17e65f --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-47.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Lifecycle Logging 1`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-48.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-48.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-48.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-49.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-49.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-49.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-5.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-5.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-5.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-50.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-50.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-50.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-6.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-6.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-6.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-7.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-7.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-7.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-8.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-8.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-8.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button-9.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button-9.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button-9.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/button.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/button.stories.storyshot new file mode 100644 index 000000000000..3addfe5c9420 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/button.stories.storyshot @@ -0,0 +1,46 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` + +`; + +exports[`Storyshots Button-1 with text 2`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/cra-dynamic-import.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/cra-dynamic-import.stories.storyshot new file mode 100644 index 000000000000..033c7a1d09ab --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/cra-dynamic-import.stories.storyshot @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with text 1`] = ` +
+ Waiting for Dynamic Import +
+`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/fast-refresh.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/fast-refresh.stories.storyshot new file mode 100644 index 000000000000..8c7df57f8c8f --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/fast-refresh.stories.storyshot @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with some emoji 1`] = ` +Array [ + , +

+ Change the input value then this text in the component file. +

, +

+ The state of the input should be kept. +

, +] +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/force-rerender.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/force-rerender.stories.storyshot new file mode 100644 index 000000000000..8b29b3c99ac9 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/force-rerender.stories.storyshot @@ -0,0 +1,22 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with some emoji 1`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/long-description.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/long-description.stories.storyshot new file mode 100644 index 000000000000..3d4cec5c8827 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/long-description.stories.storyshot @@ -0,0 +1,21 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with some emoji 1`] = ` + +`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/test.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/test.stories.storyshot new file mode 100644 index 000000000000..694aab6f68ed --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/test.stories.storyshot @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with some emoji 1`] = ` +

+ Hello +

+`; diff --git a/examples/cra-kitchen-sink/src/__snapshots__/welcome.stories.storyshot b/examples/cra-kitchen-sink/src/__snapshots__/welcome.stories.storyshot new file mode 100644 index 000000000000..0e5a29250fe3 --- /dev/null +++ b/examples/cra-kitchen-sink/src/__snapshots__/welcome.stories.storyshot @@ -0,0 +1,175 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Button-1 with some emoji 1`] = ` +
+

+ Welcome to storybook +

+

+ This is a UI component dev environment for your app. +

+

+ We've added some basic stories inside the + + src/stories + + directory. +
+ A story is a single state of one or more UI components. You can have as many stories as you want. +
+ (Basically a story is like a visual test case.) +

+

+ See these sample + + for a component calledΒ  + + Button + + . +

+

+ Just like that, you can add your own components as stories. +
+ You can also edit those components and see changes right away. +
+ (Try editing the + + Button + + stories located atΒ  + + src/stories/1-Button.stories.js + + .) +

+

+ Usually we create stories with smaller UI components in the app. +
+ Have a look at theΒ  + + Writing Stories + + Β section in our documentation. +

+

+ + NOTE: + +
+ Have a look at the + + .storybook/webpack.config.js + + to add webpack loaders and plugins you are using in this project. +

+
+`; diff --git a/examples/cra-kitchen-sink/src/concurrentshots.test.js b/examples/cra-kitchen-sink/src/concurrentshots.test.js new file mode 100644 index 000000000000..d78a966a7d68 --- /dev/null +++ b/examples/cra-kitchen-sink/src/concurrentshots.test.js @@ -0,0 +1,7 @@ +import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots'; + +initStoryshots({ + concurrentJest: true, + // the single-file snapshot approach seems to fail with concurrent tests. Use multiple snapshots + test: multiSnapshotWithOptions(), +});