Package Exports
- screener-storybook
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (screener-storybook) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Screener-Storybook 
Automated Visual Testing for React Storybook using Screener.io.
Screener-Storybook will use your existing Storybook stories as visual test cases, and run them against Screener's automated visual testing service. Get visual regression tests across your React components with no additional coding!
Installation
Note: Your package.json file must contain a build-storybook
script for exporting a static version of storybook. More Info
In your project, install screener-storybook
:
$ npm install --save-dev screener-storybook
Then run the following command in your project root to complete setup (replacing <SCREENER_API_KEY>
with your actual API key):
$ node node_modules/screener-storybook/bin/init.js -k <SCREENER_API_KEY>
Run
$ npm run test-storybook
Additional Configuration Options
Note: Screener will automatically set build
and branch
options if you are using one of the following CI tools: Jenkins, CircleCI, Travis CI, Codeship, Drone, Bitbucket Pipelines, Semaphore.
- build: Build number from your CI tool. Screener will auto-generate a Build number if not provided.
- branch: Current branch name for your repo
- resolution: Screen resolution to use. Defaults to
1024x768
- ignore: Comma-delimited string of CSS Selectors that represent areas to be ignored. Example:
.qa-ignore-date, .qa-ignore-ad
- includeRules: Optional array of strings or RegExp expressions to filter states by. Rules are matched against state name. All matching states will be kept.
- Example:
includeRules: [ 'State name', /^Component/ ]
- excludeRules: Optional array of strings or RegExp expressions to filter states by. Rules are matched against state name. All matching states will be removed.
- Example:
excludeRules: [ 'State name', /^Component/ ]
- diffOptions: Visual diff options to control validations.
- Example:
diffOptions: { structure: true, layout: true, style: true, content: true }