coverage-putty is a transform preprocessor for Jest that uses Istanbul to exclude JavaScript helper functions generated by the TypeScript transpiler from coverage reports. Version 0.1.0 is the current release, with no recent updates. It helps avoid skewing coverage metrics with boilerplate TypeScript output. Only works with Jest and Istanbul; requires manual transform configuration. No competing packages address this exact niche.
npm install coverage-puttyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Jest to use coverage-putty for transforming JS files, excluding TypeScript-generated helpers from coverage.
Ensure the pattern starts with 'src/' and includes proper escaping for dots: 'src/.*\\.js$'.
Compile TypeScript to JS first (e.g., via ts-jest or tsc), then apply the transform on the JS files.
Consider using 'jest-coverage-ignore' or similar alternatives, or test with your Jest version.
Run npm install coverage-putty --save-dev
Ensure 'jest' key exists in package.json with 'transform' object containing the pattern.
No dependency data recorded yet.