-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
No coverage for typescript compiled project #1210
Comments
the same on another PC: |
I think you need to remove the nyc |
I experience the same behaviour that istanbul is only reporting 100% Branch coverage. |
I also ran into this issue with v14.1.1. Configuration was pretty simple: "nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"check-coverage": true
} in my And after adding "nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"extension": [
".ts"
],
"check-coverage": true
} EDIT: It seems that this issue was already fixed on HEAD with this PR: istanbuljs/istanbuljs@a01a2b8#diff-0f1bb8bd3767c66869730d250d7bb39f It added |
@rhysd this is a known breaking change of 14.x. Changing the default @repinvv I've had a moment to clone your gist. I recommend upgrading to nyc 15 which includes some fixes that apply to your project. After upgrading make changes to your nyc configuration:
|
@coreyfarrell Thank you for the information. I'll wait for v15 keeping my configuration meantime. |
yes, nyc@15 beta works for me. Needs a lot more specified in exclude section, but it works. I wonder if it does instrument more files than needed which might impact its performance, since I don't specify what to include anymore. |
As an alternative you could specify |
https://gist.github.com/repinvv/9440648d1f128dd9d144589e5be7d456
npm i
npm test
Expected Behavior
This is how it works with [email protected]

Observed Behavior
nyc@14

Environment Information
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
Memory: 1.83 GB / 7.84 GB
Binaries:
Node: 12.11.1 - C:\Program Files\nodejs\node.EXE
npm: 6.11.3 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered: