File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
test/fixtures/test-runner/output Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const {
1515 PromisePrototypeThen,
1616 PromiseResolve,
1717 SafePromisePrototypeFinally,
18+ StringPrototypeStartsWith,
1819 ReflectApply,
1920 RegExpPrototypeExec,
2021 SafeMap,
@@ -58,6 +59,7 @@ const {
5859} = require ( 'internal/validators' ) ;
5960const { setTimeout } = require ( 'timers' ) ;
6061const { TIMEOUT_MAX } = require ( 'internal/timers' ) ;
62+ const { fileURLToPath } = require ( 'internal/url' ) ;
6163const { availableParallelism } = require ( 'os' ) ;
6264const { bigint : hrtime } = process . hrtime ;
6365const kCallbackAndPromisePresent = 'callbackAndPromisePresent' ;
@@ -385,6 +387,10 @@ class Test extends AsyncResource {
385387 this . loc . file = entry . originalSource ;
386388 }
387389 }
390+
391+ if ( StringPrototypeStartsWith ( this . loc . file , 'file://' ) ) {
392+ this . loc . file = fileURLToPath ( this . loc . file ) ;
393+ }
388394 }
389395 }
390396
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ TAP version 13
33not ok 1 - fails
44 ---
55 duration_ms: *
6- location: 'file:// /test/fixtures/test-runner/output/source_mapped_locations.ts:5:1'
6+ location: '/test/fixtures/test-runner/output/source_mapped_locations.ts:5:1'
77 failureType: 'testCodeFailure'
88 error: |-
99 Expected values to be strictly equal:
You can’t perform that action at this time.
0 commit comments