karma-runner / karma-runner/karma-coverage

Derive config from .nycrc

Open
#401 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

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:
```json
{
"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.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how karma-coverage reads options from karma.conf.js and how its existing tests cover include and exclude handling. Check the project-root .nycrc.json and the package.json nyc key as configuration sources, then verify that both provide the requested values without requiring those options in karma.conf.js.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.