Skip to content

stephahart/jest-ratchet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest-Ratchet

Maintainability Build Status Coverage Status Known Vulnerabilities Greenkeeper badge

Ratchet up code coverage - keep test coverage going only one direction -- up

Jest-Ratchet is a coverage watcher for Jest. Everytime a new level of coverage is reached Jest-Ratchet will automatically update the coverageThreshold.

Installation

npm

npm install jest-ratchet --dev

yarn

yarn add jest-ratchet --dev

Jest Settings

Add jest-ratchet to the reporters section. And also ensure that collectCoverage is enabled and json-summary is added to the coverageReporters.

{
  "collectCoverage": true,
  "coverageReporters": [ "json-summary" ],
  "reporters": [ "jest-ratchet" ]
}

About

🔧 Ratchet up test coverage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 89.8%
  • JavaScript 10.2%