项目作者: msn0

项目描述 :
Angular6 - unit and visual regression tests
高级语言: TypeScript
项目地址: git://github.com/msn0/a6-examples.git
创建时间: 2018-09-24T13:22:29Z
项目社区:https://github.com/msn0/a6-examples

开源协议:

下载


A6 Build Status

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

Start

First start json-server:

  1. $ npx json-server --watch products.json

then

  1. $ npm start

Running tests

Run unit tests:

  1. $ 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):

  1. $ npx jest

Update screenshots if they match requirements:

  1. $ npx jest -u

and open localhost:3000.