Skip to content

rgsk/react-testing-jest-codevolution

Repository files navigation

test-coverage

scripts.coverage contains below command

yarn test --coverage --watchAll --collectCoverageFrom='src/components/**/*.{ts,tsx}' --collectCoverageFrom='!src/components/**/*.{types,stories,constants,test,spec}.{ts,tsx}'

--coverage -> flag generates the coverage

--watchAll -> is alternative to a

--collectCoverageFrom -> we can specify the file patterns to include or exclude for coverage report

coverage-report in gui

a coverage folder is created we can access covergage/lcov-report/index.html to view to coverage report as gui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors