You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,3 +44,10 @@ To run stories and get component examples, follow these steps:
44
44
1. run ```npm install```
45
45
2. run ```npm run storybook```
46
46
3. Find the stories running on [localhost:9001](http://localhost:9001).
47
+
48
+
## Snapshot testing in react storybook
49
+
50
+
This repo ships with story snapshots to examine differences in rendering as a result of changes to source code.
51
+
52
+
To identify render differences run ```npm run test:storyshots```. If all changes are intentional run ```npm run test:storyshots -- -u```. To learn about other run options including *interactive mode*, read
53
+
[Snapshot Testing in React Storybook](https://voice.kadira.io/snapshot-testing-in-react-storybook-43b3b71cec4f)
0 commit comments