-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Open
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.coverageIssues and PRs related to native coverage support.Issues and PRs related to native coverage support.source mapsIssues and PRs related to source map support.Issues and PRs related to source map support.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Version
v22.9.0
Platform
N/A
Subsystem
test_runner
What steps will reproduce the bug?
Create index.mjs
:
export {}
//# sourceMappingURL=index.mjs.map
Create index.mjs.map
:
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["index.mjs"],"names":[],"mappings":"AAEA"}
Run:
node --experimental-test-coverage --test index.mjs
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior? Why is that the expected behavior?
Coverage should be reported, or an error explaining why it wasn't is displayed.
What do you see instead?
ℹ Warning: Could not report code coverage. TypeError: Cannot read properties of undefined (reading 'startOffset')
Additional information
CC @nodejs/test_runner
spence-s
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.coverageIssues and PRs related to native coverage support.Issues and PRs related to native coverage support.source mapsIssues and PRs related to source map support.Issues and PRs related to source map support.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.