Skip to content

msn0/a6-examples

Repository files navigation

A6 Build Status

This repo contains some examples of unit-testing and vrt-testing of Angular6 app.

Start

First start json-server:

$ npx json-server --watch products.json

then

$ npm start

Running tests

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.