Skip to content

Commit

Permalink
test_runner: convert file URLs to paths in test enqueue method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mert Can Altin committed Jan 31, 2024
1 parent a501315 commit c1cc29b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/test_runner/tests_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ class TestsStream extends Readable {
}

enqueue(nesting, loc, name) {
const file = loc.file.startsWith('file://') ? loc.file.substring(7) : loc.file;
this[kEmitMessage]('test:enqueue', {
__proto__: null,
nesting,
name,
file,
...loc,
});
}
}

Check failure on line 82 in lib/internal/test_runner/tests_stream.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Expected indentation of 2 spaces but found 0

dequeue(nesting, loc, name) {
this[kEmitMessage]('test:dequeue', {
Expand Down

0 comments on commit c1cc29b

Please sign in to comment.