map-coverage
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i map-coverage

Weekly Downloads

6

Version

0.0.3

License

LGPL-3.0

Last publish

Collaborators

  • louy