Visual regression testing with Jest, Puppeteer, and Pixelmatch
Site: http://ashley-viz.surge.sh/
npm install
npm run test
- Change
_sass/main.scss
.
$primary: $blue;
to
$primary: $pink;
-
npm run css
to compile -
npm run serve
just to preview the change -
npm run test
to fail test (takes a while) -
npm run serve-diff
to see diff image and understand what changed, visually.
- Make test fail better and proceed to next command
- git ignore screenshots
- Figure out a way of accepting new