Source map resolution difference between Istanbul and V8 coverage plugins #5341
Labels
feat: coverage
Issues and PRs related to the coverage feature
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
In our project setup, we have a pre-processing step, so the test run against a
lib
folder instead ofsrc
. This causes differences in behavior betweenistanbul
andv8
coverage providers.When running tests with
istanbul
it follows the source maps and the resolves the file to the originalindex.ts
source:But it does not happen with
v8
, the report shows transpiledindex.js
This becomes an issue when uploading reports to tools like Codecov, because they cannot match up the coverage report against the source
Reproduction
Minimal repro can be found here: https://github.com/just-boris/vitest-coverage-issue-5341
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: