karma-coverage icon indicating copy to clipboard operation
karma-coverage copied to clipboard

Derive config from .nycrc

Open bennypowers opened this issue 4 years ago • 1 comments

I'd like to add a .nycrc.json in my project root and have karma-coverage pick up on it without needing to specify includes or excludes in my karma.conf.js

Example config:

{
  "include": ["src/**/*.js"],
  "exclude": [
    "**/*.test.js",
    "stories/*",
    "test/*"
  ]
}

Additionally, some users will want to specify a nyc key in their package.json with value same as above.

bennypowers avatar Jan 28 '20 11:01 bennypowers

related to https://github.com/istanbuljs/nyc/issues/320

bennypowers avatar Jan 28 '20 11:01 bennypowers