Skip to content
Permalink
Browse files

Setup Chromatic.

  • Loading branch information...
ghengeveld committed Sep 4, 2019
1 parent 0bd142d commit 202d3e07e97f6561d7fc519dc46d8b3623421a9b
Showing with 253 additions and 10 deletions.
  1. +11 −1 .circleci/config.yml
  2. +2 −0 .storybook/config.js
  3. +3 −1 package.json
  4. +237 −8 yarn.lock
@@ -86,6 +86,13 @@ jobs:
yarn deploy:examples --token $NOW_API_TOKEN
fi
no_output_timeout: 30m
chromatic:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: yarn test:chromatic

workflows:
version: 2
@@ -103,4 +110,7 @@ workflows:
- test
- examples:
requires:
- build
- build
- chromatic:
requires:
- build
@@ -1,4 +1,6 @@
import { configure } from "@storybook/react"

import "storybook-chromatic"

const req = require.context("../stories", true, /\.stories\.js$/)
configure(() => req.keys().forEach(filename => req(filename)), module)
@@ -25,6 +25,7 @@
"test:latest": "yarn add -D -W react@latest react-dom@latest && yarn test",
"test:compat": "yarn test:backwards && yarn test:forwards && yarn test:latest",
"test:examples": "CI=1 lerna run --scope '*-example' test -- --passWithNoTests --watchAll=false",
"test:chromatic": "chromatic test --app-code k5pzlywcw7c --build-script-name build:storybook",
"ci": "yarn lint && yarn test:compat && yarn test:examples",
"build:packages": "lerna run --scope 'react-async*' build",
"build:examples": "lerna run --scope '*-example' build",
@@ -66,6 +67,7 @@
"prop-types": "15.7.2",
"react": "16.9.0",
"react-async": "^8.0.0-alpha.0",
"react-dom": "16.9.0"
"react-dom": "16.9.0",
"storybook-chromatic": "^2.2.2"
}
}

0 comments on commit 202d3e0

Please sign in to comment.
You can’t perform that action at this time.