Skip to content

esnext-coverage/babel-plugin-transform-esnext-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-transform-esnext-coverage

NPM version Build Status

Instrumenter for esnext-coverage.

Installation

npm install babel-plugin-transform-esnext-coverage --save-dev

Usage

.babelrc

It is recommended that you run the instrumenter conditionally, using env variables, e.g. NODE_ENV=test:

{
  "env": {
    "test": {
      "plugins": ["transform-esnext-coverage"]
    }
  }
}

CLI

$ babel --plugins transform-esnext-coverage script.js

Node API

require('babel-core').transform('code', {
  plugins: ['transform-esnext-coverage']
});

License

MIT License