Skip to content

How to run test in development

Chao Zhou edited this page Aug 20, 2020 · 1 revision

Run jest test

yarn run jest -c .jest.config.js -u --expand --watchAll --no-cache --coverage

Install the live-server

npm install -g live-server

View the report

live-server coverage/lcov-report

Then you can open the link http://127.0.0.1:8080 to view the report in real-time

If you want to see the coverage for a single test you just use 'p' to match the pattern of the file name. Guide

Clone this wiki locally