Skip to content

Setup Jest 🤹 to run in watch mode, produce a coverage report and set thresholds

Notifications You must be signed in to change notification settings

giopunt/setup-jest-with-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Jest with coverage 🤹

How to setup Jest in a project and produce a coverage report.

Setup

To run the project open up the terminal and follow these instruction:

$ git clone https://github.com/giopunt/setup-jest-with-coverage.git && cd setup-jest-with-coverage

Then install the dependencies

# npm
$ npm install
# or if you prefer yarn
$ yarn 

Run the tests

Then to run the tests use:

# npm
$ npm run test
# yarn
$ yarn test

You will now find a report in the output of your terminal or under coverage/lcov-report/index.html.

About

Setup Jest 🤹 to run in watch mode, produce a coverage report and set thresholds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published