Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

map-coverage

louy11LGPL-3.00.0.3TypeScript support: included

Generate coverage files from your source maps

coverage, source-map, source-maps

readme

map-coverage

Generate coverage files from your source maps.

Very useful for modules built with Typescript, JSX, or anything that uses a transpiler such as Babel or Traceur.

Usage

Simply, npm i --save-dev map-coverage and then in package.json:

(Replace istanbul with whatever you use)

{
  "scripts": {
    "coverage": "istanbul cover _mocha",
    "postcoverage": "map-coverage"
  }
}

You'll end up with a file coverage/lcov-mapped.info, given that you have coverage/lcov.info.