New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
Uncovered files don't show up in report or decrease overall coverage #1213
Comments
For nyc 14 you need to add |
That's why my |
Hmmm good point sorry I missed that. Could you try adding "parser-plugins": [
"typescript",
"asyncGenerators",
"bigInt",
"classProperties",
"classPrivateProperties",
"dynamicImport",
"importMeta",
"objectRestSpread",
"optionalCatchBinding"
] I suspect the issue is that your |
|
nyc 15.0.0-beta.0 should fix the race condition from #1113. There is no solution to that issue for nyc 14. |
Okay, thank you. Good to know! :) |
Link to bug demonstration repository
nyc-typescript-coverage-issue
Expected Behavior
Files that don't have any coverage at all (i.e. no test file) should show up in the report and add to total blocks etc. - thus decreasing overall coverage for a project.
Observed Behavior
Files without tests don't get included in coverage reports even though
all
is set to true in .nycrc.jsonTroubleshooting steps
cache: false
in my nyc configEnvironment Information
The text was updated successfully, but these errors were encountered: