Skip to content

Commit 334fe17

Browse files
authored
Merge pull request #1 from 9renpoto/feature/snapshot
Added @storybook/addon-storyshot
2 parents cf867e5 + 54b5da7 commit 334fe17

File tree

5 files changed

+4095
-2518
lines changed

5 files changed

+4095
-2518
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js: "lts/*"
3+
notifications:
4+
email: false

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"version": "0.9.0",
44
"private": true,
55
"dependencies": {
6-
"@material-ui/core": "^3.0.3",
7-
"react": "^16.5.0",
8-
"react-dom": "^16.5.0",
9-
"react-scripts": "1.1.4"
6+
"@material-ui/core": "^3.8.2",
7+
"prop-types": "^15.6.2",
8+
"react": "^16.7.0",
9+
"react-dom": "^16.7.0",
10+
"react-scripts": "2.1.3"
1011
},
1112
"scripts": {
1213
"start": "react-scripts start",
@@ -20,9 +21,10 @@
2021
"@babel/core": "^7.0.0",
2122
"@storybook/addon-actions": "4.0.9",
2223
"@storybook/addon-links": "4.0.9",
24+
"@storybook/addon-storyshots": "4.0.9",
2325
"@storybook/addons": "4.0.9",
2426
"@storybook/react": "4.0.9",
25-
"babel-loader": "^8.0.2",
27+
"react-test-renderer": "^16.7.0",
2628
"storybook-addon-material-ui": "0.9.0-alpha.16"
2729
}
2830
}

src/Storyshots.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const initStoryshots = require('@storybook/addon-storyshots').default
2+
initStoryshots()

0 commit comments

Comments
 (0)