Storyshot, run individual tests
See original GitHub issueThis #6331 addresses the issue. I think it should have some priority since you can’t develop and run only one test for your story. All the tests will run. This implies a big problem if, for example, you are editing a single component and want to “update” the shot for that component with jest -u
, all the conflicting components will be accepted. Ideally, one should update an isolated component, update the shot, and the go through all the conflicts modifying accordingly their context.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:38
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Snapshot tests - Storybook
Storyshots is the official Storybook addon that enables snapshot testing, powered by Jest. Run the following command to install Storyshots: YARN; NPM.
Read more >Storybook Snapshot Testing - In Plain English
Automatic Jest Snapshot Testing with Storybook Stories. ... Simply create a test file that can be picked up by Jest and run the...
Read more >React Native Storybook + Generating individual test files to ...
The problem here is that any change to a component will trigger the jest watcher to re-run all the storyshot tests which can...
Read more >How to Test a Full React App Using Nothing But Storybook
Part 1 (you're reading it!): Testing theory, what changed in the world, and how to use storybook to cover your bases with Storyshots,...
Read more >Newest 'storyshots' Questions - Stack Overflow
When I try to run tests for storyshots with native screens enabled for ... I would like to save all snapshot files in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re hitting this problem on a pretty large project where we’re hoping to transition to storyshots. Having to run our entire test suite to update a single snapshot is painful. . . so 🙏 and ➕➕
Using hooks as a pre-commit or pre-push should ideally test only the staged files but because of this problem, it runs tests across all the stories and if any non-related tests are breaking the developer are stuck from pushing their changes upstream. Please consider this feature. 🙏