question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to run multiple storyshots?

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. Setup several storyshot tests with initStoryShots()
  2. Run them and get the warning below

Expected behavior No warning

Code snippets console.warn Unexpected loaded state. Did you callload` twice?

  4 | const storybookUrl = 'http://localhost:9000';
  5 | 
> 6 | initStoryshots({
    | ^
  7 |       suite: 'A11y checks',
  8 |       test: axeTest({ storybookUrl }),
  9 | });

` System: Environment Info:

System: OS: macOS 10.15.5 CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz Binaries: Node: 14.1.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm Browsers: Chrome: 83.0.4103.116 Edge: 83.0.478.58 Firefox: 74.0 Safari: 13.1.1 npmPackages: @storybook/addon-a11y: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-controls: ^6.0.0-beta.15 => 6.0.0-beta.15 @storybook/addon-docs: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-jest: ^5.3.19 => 5.3.19 @storybook/addon-knobs: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-links: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-storyshots: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-storyshots-puppeteer: ^5.3.19 => 5.3.19 @storybook/addon-storysource: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/addon-viewport: ^6.0.0-beta.38 => 6.0.0-beta.39 @storybook/preset-scss: ^1.0.2 => 1.0.2 @storybook/react: ^6.0.0-beta.38 => 6.0.0-beta.39

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
webholicscommented, Sep 24, 2020

I’m having the same issue currently with the latest storyshots/storybook 6.0.21

0reactions
wallynmcommented, Feb 1, 2021

As im seeing, in order to support multiple initStoryshots you need to create multiple files, it treats better this way using single initStoryshots per file, worked for me, not best solution but at least the error disappeared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storyshots Addon | Storybook: Frontend workshop for UI ...
Now run your Jest test command. (Usually, npm test .) Then you can see all of your stories are converted as Jest snapshot...
Read more >
StoryShots Desktop App for Mac and PC - WebCatalog
Manage multiple StoryShots accounts at the same time and switch between them with a single click. Stay Focused. Launch StoryShots quickly from dock...
Read more >
StoryShots: Free Book Summaries and Audiobooks
Free Book Summaries, Audiobooks & More ... Use StoryShots to get through your stack of unfinished books or discover new exciting reads.
Read more >
Storyshots a powerful side of Storybook to Visual Test React ...
2. Then, I created a test file storyshots.test.js that contains the ... Below is Jest Test Run , snapshot generated from storybook ,which ......
Read more >
How to debug Storyshots test generation issues - Stack Overflow
Is there anyway to get more accurate information about what went wrong? ... storyshots.test.ts ○ Test suite failed to run Your test suite ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found