3.0.0 • Published 4 years ago
@istanbuljs/nyc-config-babel v3.0.0
nyc-config-babel
Handy default configuration for instrumenting your babel-backed project with test coverage using nyc and babel-plugin-istanbul.
First install the dependencies:
npm i babel-plugin-istanbul @istanbuljs/nyc-config-babel --save-dev
Then write a .babelrc
that looks something like this:
.babelrc
{
"presets": ["@babel/env", "..., etc."],
"plugins": ["istanbul"]
}
.nycrc
And write a .nycrc
that looks something like this:
{
"extends": "@istanbuljs/nyc-config-babel"
}
Running Tests
Now setup the test scripts in your package.json like so:
{
"test": "nyc mocha test.js"
}
License
ISC
3.0.0
4 years ago
3.0.0-alpha.2
4 years ago
3.0.0-alpha.1
5 years ago
3.0.0-alpha.0
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.1
5 years ago
2.0.0
6 years ago
1.2.3
6 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago