0.1.0 • Published 8 years ago

jest-babel-istanbul v0.1.0

Weekly downloads
105
License
MIT
Repository
github
Last release
8 years ago

jest-babel-istanbul Build Status

A jest coverage collector using babel-istanbul.

When running jest --cover against ES6 code you will find that it will report missing coverage despite your tests covering all of your code. This can be attributed to the trans-compilation and coverage instrumentation steps involved.

To get around this problem jest-babel-istanbul uses babel-istanbul jest's built-in collector which uses plain istanbul.

Usage

Install the package:

npm install --save-dev jest-babel-istanbul

Specify the coverageCollector for jest in your package.json:

{
    "jest": {
        "coverageCollector": "jest-babel-istanbul"
      }
}

Run your tests:

jest --cover