coverage-putty
v0.1.0
Published
Transform preprocessor for jest (using istanbul). Excludes Javascript helper functions generated by Typescript transpiler from coverage.
Downloads
2
Readme
coverage-putty
Transform "preprocessor" for jest (using istanbul). Excludes Javascript helper functions generated by Typescript transpiler from coverage.
Installation
npm install coverage-putty --save-dev
Configuration
Example "package.json":
{
"name": "your-package",
"version": "0.0.0",
"jest": {
"collectCoverage": true,
"coverageDirectory": "report/",
"collectCoverageFrom": [ "src/**/*.js" ],
"transform": {
"src/.*\\.js$": "coverage-putty/istanbul-ignore.js"
}
}
}
Please note, the transform
file path pattern (src/.*\\.js$
) is an ordinary Javascript regular expression.
Run your Typescript tests and check the coverage report.
License
BSD