@nuskin/visual-regression-test-tools
v1.4.0
Published
Nu Skin tools for performing Visual Regression Testing
Downloads
5
Keywords
Readme
Visual Regression Testing Tools
Tools for helping with visual regression testing.
Designed for use with Jest, Puppeteer, and jest-image-snapshot.
Included Tools
- testSnapshotsForStates() - Test an element in different states (like hovered or clicked)
Installation
NPM:
npm install --save-dev @nuskin/visual-regression-test-tools
Yarn:
yarn add --dev @nuskin/visual-regression-test-tools
Depending on which features you use, you may need to install other dependencies.
Pre-release version
NPM:
npm install --save-dev @nuskin/visual-regression-test-tools@develop
Yarn:
yarn add --dev @nuskin/visual-regression-test-tools@develop
Use with Storybook
To add visual regression testing to a Storybook application, follow the directions to use @storybook/addon-storyshots and @storybook/addon-storyshots-puppeteer.