jest-babel-istanbul
v0.1.0
Published
A jest coverage collector using babel-istanbul.
Readme
jest-babel-istanbul 
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-istanbulSpecify the coverageCollector for jest in your package.json:
{
"jest": {
"coverageCollector": "jest-babel-istanbul"
}
}Run your tests:
jest --cover