@nuskin/visual-regression-test-tools
v1.4.0
Published
Nu Skin tools for performing Visual Regression Testing
Downloads
144
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-toolsYarn:
yarn add --dev @nuskin/visual-regression-test-toolsDepending 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@developYarn:
yarn add --dev @nuskin/visual-regression-test-tools@developUse with Storybook
To add visual regression testing to a Storybook application, follow the directions to use @storybook/addon-storyshots and @storybook/addon-storyshots-puppeteer.
