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
[Bug] Unable to merge coverage for the same file #753
Comments
Ohhh, I see. The statementMap is just the location at the top level. It doesn't have a nested |
This prevents a thrown when the statement map needs to be processed for container hits, because the statement map entries do not contain a "loc" field, they just have this inforation at the top level. Fix: #753
Thanks for making this reproducible issue @sashuk. I am running into the same exact issue. Came here to check and found you already did the leg work 🥇 |
This prevents a thrown when the statement map needs to be processed for container hits, because the statement map entries do not contain a "loc" field, they just have this inforation at the top level. Fix: #753
Forgot to do the release 😅 https://github.com/istanbuljs/istanbuljs/releases/tag/istanbul-lib-coverage-v3.2.2 |
One of my projects started failing with the following message (I use latest https://github.com/ljharb/istanbul-merge that pulls latest https://www.npmjs.com/package/istanbul-lib-coverage)
It started failing right after https://github.com/istanbuljs/istanbuljs/pull/750/files was published as
latest
.After doing some research locally I was able to narrow the problem down to the coverage file, coming from one of the dependencies, particularly
node_modules/tsconfig-paths-webpack-plugin/coverage/coverage-final-test.json
(istanbul-merge
looks intonode_modules
, there is no easy way to excludenode_modules
via glob).How to reproduce
Please check out https://github.com/sashuk/demo-coverage and run
npx istanbul-merge --out "coverage-final-1.json" "./**/coverage-final.json"
cc @isaacs @SimenB
The text was updated successfully, but these errors were encountered: