Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

ai/jest-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Sponsored by Evil Martians

Usage

  1. Add both jest and jest-ci to dependencies.

    npm i --save-dev jest jest-ci
  2. Use jest-ci instead of jest in test script or CI config:

      "scripts": {
    -   "test": "jest --coverage && eslint ."
    +   "test": "jest-ci --coverage && eslint ."
      }

About

CLI for Jest test framework, but coverage only on first CI job

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors