This repo contains some examples of unit-testing and vrt-testing of Angular6 app.
First start json-server:
$ npx json-server --watch products.jsonthen
$ npm startRun unit tests:
$ npm tNOTE: *.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 jestUpdate screenshots if they match requirements:
$ npx jest -uand open localhost:3000.