Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Integrates Chromatic visual regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zol committed Feb 15, 2018
1 parent f605420 commit 5b72ae8
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 16 deletions.
1 change: 1 addition & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { configure } from '@storybook/react';
import 'react-chromatic/storybook-addon';

// automatically import all story.js files
const req = require.context('../', true, /story\.jsx$/);
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "eslint . --ignore-pattern coverage .storybook node_modules",
"test": "yarn run lint && jest",
"test-update": "jest -u",
"test-watch": "jest --watch"
"test-watch": "jest --watch",
"chromatic": "chromatic test --storybook-addon --script-name start --app-code=igage0xs8ir"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,6 +47,7 @@
"identity-obj-proxy": "3.0.0",
"jest": "21.2.1",
"react": "16.0.0",
"react-chromatic": "^0.7.9",
"react-dom": "16.0.0",
"react-test-renderer": "16.0.0",
"storybook-addon-a11y": "3.1.9"
Expand Down
Loading

0 comments on commit 5b72ae8

Please sign in to comment.