-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
empty coverage on v14 #1111
Comments
1 task
nyc@14 requires that include/exclude/extension settings allow the original source locations. I suspect the following {
"include": [
"build/**/*.js",
"src/**/*.ts"
],
"extension": [
".js",
".ts"
],
"exclude": [
"**/test"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"all": true
} |
Thanks a bunch! I'm not sure why I couldn't get it to work when I first tried on v14.0.0
|
14.0.0 had a bug that caused havoc when |
Conaclos
added a commit
to coast-team/dotted-logootsplit
that referenced
this issue
Jul 17, 2019
- Separate coverage report and test report - npm run test: test only - npm run coverage: test + coverage report nyc 14.x has a "bug" that excludes TypeScript files from the report. The "bug" is fixed by adding "ts" as extension in the nyc config. See istanbuljs/nyc#1111 for more details. nyc 15.x should include "ts" extension by default. See istanbuljs/nyc#1122 (comment)
Conaclos
added a commit
to coast-team/dotted-logootsplit
that referenced
this issue
Feb 3, 2023
- Separate coverage report and test report - npm run test: test only - npm run coverage: test + coverage report nyc 14.x has a "bug" that excludes TypeScript files from the report. The "bug" is fixed by adding "ts" as extension in the nyc config. See istanbuljs/nyc#1111 for more details. nyc 15.x should include "ts" extension by default. See istanbuljs/nyc#1122 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to bug demonstration repository
https://github.com/bjornstar/tslint/tree/update-nyc-again
Expected Behavior
Report coverage correctly.
With nyc@v13 we get:
Observed Behavior
Troubleshooting steps
cache: false
in my nyc configEnvironment Information
.nycrc:
The text was updated successfully, but these errors were encountered: