This repo contains some examples of unit-testing and vrt-testing of Angular6 app.
First start json-server:
$ npx json-server --watch products.json
then
$ npm start
Run unit tests:
$ npm t
NOTE: *.png
files are stored in LFS so you should install git-lfs if you want to run visual regression tests and push screenshots.
Run VRT tests (json-server should be up and running):
$ npx jest
Update screenshots if they match requirements:
$ npx jest -u
and open localhost:3000.