Karma reporter that remaps Istanbul coverage reports to original source code using source maps, enabling accurate coverage for transpiled languages like TypeScript, ES6/7 with Babel, or JSX. Currently at v0.1.5, last released in 2017, with no further updates. Works in watch mode and stores interim coverage in memory (via karma-coverage's 'in-memory' type) to avoid temporary files. Integrates with webpack and other bundlers that produce source maps. Alternatives: karma-coverage-istanbul-reporter, karma-typescript's built-in coverage.
npm install karma-remap-coverageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal Karma config to enable remapped coverage: set reporters, use in-memory coverage, and configure remap output.
Migrate to karma-coverage-istanbul-reporter or use built-in coverage in karma-typescript.
Add both 'karma-coverage' and 'karma-remap-coverage' to plugins list in karma.conf.js.
Set coverageReporter: { type: 'in-memory' } and do not specify any other output from karma-coverage.Ensure source maps are generated for your source files and passed to Karma.
Add 'karma-remap-coverage' to plugins list (note: not 'remap-coverage' without prefix).
Add coverageReporter: { type: 'in-memory' } to karma config and ensure reporters includes 'coverage' and 'remap-coverage'.Add remapCoverageReporter object in karma config with at least one output format, e.g., remapCoverageReporter: { html: './coverage' }.