You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not report code coverage for file in sourcemap #55054
Warning: Could not report code coverage. TypeError: Cannot read properties of undefined (reading 'startOffset')
The most likely fix is #55359, which made coverage only use sourcemap remapping when --enable-source-maps is explicitly enabled. That matches this repro, because it only used --experimental-test-coverage and --test.
There was also related hardening in #55055 for invalid or missing sourcemaps.
Activity
geeksilva97 commentedon Apr 21, 2025
It's not reproducible in 23.10.0
mcollina commentedon May 23, 2026
I investigated this from a clean
upstream/mainbuild and could not reproduce it anymore.I checked out
upstream/main, rebuiltnode, and then ran the exact repro from the issue:with:
and:
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["index.mjs"],"names":[],"mappings":"AAEA"}Current behavior is a normal coverage report:
index.mjs | 100.00 | 100.00 | 100.000So this no longer fails with:
The most likely fix is #55359, which made coverage only use sourcemap remapping when
--enable-source-mapsis explicitly enabled. That matches this repro, because it only used--experimental-test-coverageand--test.There was also related hardening in #55055 for invalid or missing sourcemaps.