jest-coverage-processor
Utils for working with Jest coverage data (auto update thresholds, etc.)
Installation
npm i jest-coverage-processor --save-dev
updateThresholds
- Update your Jest config:
// jest.config.jsmoduleexports = // ... testResultsProcessor: '<rootDir>/test-results-processor.js';
- Add a test processor script:
// <rootDir>/test-results-processor.jsconst path = ;const updateThresholds = ; module { return ;};