⚠️ ⚠️ ❗️ DEPRECATED ❗️ ⚠️ ⚠️
This module is unmaintained. Please use deepsweet/isparta-loader
webpack
Isparta instrumenter loader forInstrument JS files with Isparta for subsequent code coverage reporting. Forked from deepsweet/istanbul-instrumenter-loader. Thank you for your work 👍
Install
$ npm i -S isparta-instrumenter-loader
Usage
Useful to get work together karma-webpack and karma-coverage. For example:
- karma-webpack config
- karma-coverage config
- replace
karma-coverage
's code instrumenting withisparta-instrumenter-loader
's one:
config;
Passing options to isparta
You can pass config variables to isparta using webpack loader params.
Example (webpack loader config):
test: /|$/ exclude: // loader: 'isparta-instrumenter' query: babel: presets: 'es2015' 'react' 'stage-0'
This will specify which presets babel should use at instrumenting stage.