File tree 4 files changed +253
-10
lines changed
4 files changed +253
-10
lines changed Original file line number Diff line number Diff line change 86
86
yarn deploy:examples --token $NOW_API_TOKEN
87
87
fi
88
88
no_output_timeout : 30m
89
+ chromatic :
90
+ << : *defaults
91
+ steps :
92
+ - checkout
93
+ - attach_workspace :
94
+ at : .
95
+ - run : yarn test:chromatic
89
96
90
97
workflows :
91
98
version : 2
@@ -103,4 +110,7 @@ workflows:
103
110
- test
104
111
- examples :
105
112
requires :
106
- - build
113
+ - build
114
+ - chromatic :
115
+ requires :
116
+ - build
Original file line number Diff line number Diff line change 1
1
import { configure } from "@storybook/react"
2
2
3
+ import "storybook-chromatic"
4
+
3
5
const req = require . context ( "../stories" , true , / \. s t o r i e s \. j s $ / )
4
6
configure ( ( ) => req . keys ( ) . forEach ( filename => req ( filename ) ) , module )
Original file line number Diff line number Diff line change 25
25
"test:latest" : " yarn add -D -W react@latest react-dom@latest && yarn test" ,
26
26
"test:compat" : " yarn test:backwards && yarn test:forwards && yarn test:latest" ,
27
27
"test:examples" : " CI=1 lerna run --scope '*-example' test -- --passWithNoTests --watchAll=false" ,
28
+ "test:chromatic" : " chromatic test --app-code k5pzlywcw7c --build-script-name build:storybook" ,
28
29
"ci" : " yarn lint && yarn test:compat && yarn test:examples" ,
29
30
"build:packages" : " lerna run --scope 'react-async*' build" ,
30
31
"build:examples" : " lerna run --scope '*-example' build" ,
66
67
"prop-types" : " 15.7.2" ,
67
68
"react" : " 16.9.0" ,
68
69
"react-async" : " ^8.0.0-alpha.0" ,
69
- "react-dom" : " 16.9.0"
70
+ "react-dom" : " 16.9.0" ,
71
+ "storybook-chromatic" : " ^2.2.2"
70
72
}
71
73
}
You can’t perform that action at this time.
0 commit comments