Changelog

Node.js Icon meowni.ca

Automatic visual diffing with Puppeteer

logged by @jerodsanto 2018-02-05T21:35:00.011605Z permalink #node #javascript #testing

Monica Dinculescu:

I did a little song-and-dance that sets up Puppeteer , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones. If they match, your test passes!

It only works with Chrome (because Puppeteer), but that's not a big deal since this is the kind of thing you only put in your devDependencies. The results are super cool in your test suite output:

Automatic visual diffing with Puppeteer
0:00 / 0:00