1.0.0-alpha.0 • Published 9 months ago
jest-compare-reporter v1.0.0-alpha.0
jest-compare-reporter
What this is
A simple jest reporter that will output previous and current test coverage results. BYO git hooks to police yourself and make sure your code coverage doesn't fall.
How to use it
npm install jest-compare-reporter
- Add the reporter to your jest config (ex: https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options) 2a. Alternatively you can use it from the CLI (ex: https://jestjs.io/docs/cli#--reporters)
- This outputs a file that compares the coverage between the previous run and the current run.
- Use the file however you'd like. I made it with the intention of being used with git hooks.
1.0.0-alpha.1
9 months ago
1.0.0-alpha.0
9 months ago