1.1.1 • Published 1 year ago

@dwp/nyc-config-base v1.1.1

Weekly downloads
275
License
ISC
Repository
github
Last release
1 year ago

@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"