Jest CI
CLI for Jest JS testing framework, which run --coverage
only on first CI job.
Checking code coverage uses a lot of resources, but the result doesn’t depend on Node.js version. You can check coverage only on first CI job and speed up other jobs by run tests without code coverage.
Usage
Add both
jestandjest-cito dependencies.npm i --save-dev jest jest-ciUse
jest-ciinstead ofjestintestscript or CI config:"scripts": { - "test": "jest --coverage && eslint ." + "test": "jest-ci --coverage && eslint ." }