Skip to content

.nycrc doesn't set report-dir and reporter options #93

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Closed
bondarenko09 opened this issue Nov 8, 2019 · 3 comments · Fixed by #205
Closed

.nycrc doesn't set report-dir and reporter options #93

bondarenko09 opened this issue Nov 8, 2019 · 3 comments · Fixed by #205
Assignees
Labels
released type: enhancement New feature or request

Comments

@bondarenko09
Copy link

bondarenko09 commented Nov 8, 2019

I have .nycrc file with some configuration:

{
  "extends": "@istanbuljs/nyc-config-typescript",
  "all": true,
  "check-coverage": false,
  "report-dir": "cypress-coverage",
  "reporter": [
    "text",
    "json"
  ]
}

The problem is neither report-dir nor reporter options works, until I set up this configs into my package.json

@ghost
Copy link

ghost commented Jan 24, 2020

Seems that I have the same problem, mine seems to ignore .nycrc.json. For me it seems as a anti-pattern even having such configs in package.json

@bahmutov
Copy link
Contributor

I need to read JSON config files from https://github.com/istanbuljs/nyc#configuration-files

Right now we only read nyc from package.json, but should read and merge

  • nyc package.json
  • .nycrc (JSON)
  • .nycrc.json

@bahmutov
Copy link
Contributor

🎉 This issue has been resolved in version 3.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
released type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants