@dwp/nyc-config-base
v1.1.1
Published
Base configuration for nyc
Downloads
2,773
Readme
@dwp/nyc-config-base
Shareable nyc
config for instrumenting code.
Getting started
npm install --save-dev @dwp/nyc-config-base nyc
Rules
Add a nyc.config.js
file that looks something like:
module.exports = require('@dwp/nyc-config-base');
You can add your own rules to enhance this, but in doing so please ensure you don't weaken the baseline ruleset.
Instrumenting tests
Add nyc
to your test suite like this, or see our package.json for an example of how we do it:
"test": "nyc jasmine"