base configuration for nyc


111.0.04 years ago4 years agoMinified + gzip package size for @dwp/nyc-config-base in KB



Shareable nyc config for instrumenting code.

Getting started

npm install --save-dev @dwp/nyc-config-base nyc


Add an .nycrc file that looks something like:

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.