Answers for "how to have coverage jest"

-1

jest test coverage command

// Command 
npm run test -- --coverage 

// If you wanna watch 
npm run test -- --coverage --watchAll=true 

// or 

npm run test -- --coverage --watchAll=true
Posted by: Guest on December-22-2021
2

jest command coverage

# in package.json
# "scripts": {
#     "test": "jest --coverage"
# },

# using yarn
yarn test

# using npm
npm run test
Posted by: Guest on February-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language