@dwp/nyc-config-base

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @dwp/nyc-config-base

Weekly Downloads

946

Version

1.1.1

License

ISC

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • dwp-bot
  • jgdwp
  • lhokktyn
  • adam-moss