JSPM

  • Created
  • Published
  • Downloads 4587
  • Score
    100M100P100Q118785F
  • License BSD-3-Clause

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale

Package Exports

  • babel-istanbul
  • babel-istanbul/lib/cli

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-istanbul) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-istanbul - babel + istanbul

Features

  • This package handles coverage for babel generated code by reconciling babel's output and its source map.
  • babel-istanbul is drop-in replacement for istanbul, as it is a copy of istanbul with babel compilation inserted into the instrumentation layer.
  • There are also a few special flags for helping with babel compilation.

Getting started

$ npm install babel-istanbul
  • babel-istanbul is run exactly like istanbul. For specifics on running istanbul, see istanbul's README.

Special flags

  • There are a few special flags added to make working with babel easier:
Name Description
include-babel-polyfill includes the babel-polyfill, defaults to false.
use-babel-runtime uses the optional runtime option for babel, defaults to false.
babel-stage sets the babel stage, defaults to 2 (draft).