Skip to content

taehwanno/jest-image-snapshot-example

Repository files navigation

jest-image-snapshot-example Build Status

Jest Image Snapshot Example with jest-image-snapshot, puppeteer and Circle CI 2.0 for Visual Regression Test

Prerequisite

  • node >= v7.6.0
  • jest >= v20.0.0
  • yarn

This project assumes node.js version with v8.4.0.

Installation

$ npm install

Test

First, run server.

$ npm start

and open another terminal, run test script.

$ npm test

To update snapshot image file, run test with -u

$ npm test -- -u

In Circle CI Ubuntu 14.04 (Trusty), you should additionally install required dependencies.

Workaround Implementation

References

License

MIT © Taehwan, No