Skip to content

Commit 2dace67

Browse files
authored
Merge pull request #197 from CTEH/master
Updated Readme with some info about story testing
2 parents e2d2901 + 5f7e1fc commit 2dace67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ To run stories and get component examples, follow these steps:
4444
1. run ```npm install```
4545
2. run ```npm run storybook```
4646
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

Comments
 (0)