JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2970
  • Score
    100M100P100Q130003F
  • License MIT

Babel 6.x plugin to add instrument code with Istanbul-compatible `__coverage__` variable.

Package Exports

  • babel-plugin-__coverage__

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-__coverage__) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-plugin-__coverage__

Build Status codecov.io

A Babel plugin that instruments your code with __coverage__ variable. The resulting __coverage__ object is compatible with Istanbul!

Usage

Install it:

npm install --save-dev babel-plugin-__coverage__

Add to .babelrc in test mode:

{
  "env": {
    "test": {
      "plugins": [ "__coverage__" ]
    }
  }
}

It should just work with karma coverage reporter.