Skip to content

Improve Storyshots tests experience #1383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

interactivellama
Copy link
Contributor

@interactivellama interactivellama commented May 17, 2018

npm run build-storybook-for-tests was never being run, so the image comparison was not up to date with pull requests that contain image snapshots in our CI.

NPM scripts update
“build-storybook" -> static:build
“build-storybook-for-tests” -> storyshots:build
“storybook” -> static:start

Adds new script storyshots:start that allows interactive viewing of what is being tested with image snapshots to allow debugging.

npm run snapshot-test now includes a static build to compare to Jest image snapshots

This pull request only contains tooling changes.

NPM scripts update
“build-storybook" -> static:build
“build-storybook-for-tests” -> storyshots:build
“storybook” -> static:start

snapshot-test now includes a static build to compare to Jest image snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant