Skip to content

Commit 07c4c65

Browse files
committed
test_runner: remove redundant check from coverage
The code coverage reporting logic already filters out URLs that don't start with 'file:', so there is no need to also filter out URLs that start with 'node:'.
1 parent 1918241 commit 07c4c65

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/internal/test_runner/coverage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ function mergeCoverage(merged, coverage) {
378378
const { url } = newScript;
379379

380380
// Filter out core modules and the node_modules/ directory from results.
381-
if (StringPrototypeStartsWith(url, 'node:') ||
382-
StringPrototypeIncludes(url, '/node_modules/') ||
381+
if (StringPrototypeIncludes(url, '/node_modules/') ||
383382
// On Windows some generated coverages are invalid.
384383
!StringPrototypeStartsWith(url, 'file:')) {
385384
continue;

0 commit comments

Comments
 (0)