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 @@ -14,6 +14,7 @@ const {
1414 PromisePrototypeThen,
1515 PromiseResolve,
1616 SafePromisePrototypeFinally,
17+ StringPrototypeStartsWith,
1718 StringPrototypeTrim,
1819 ReflectApply,
1920 RegExpPrototypeExec,
@@ -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' ;
@@ -383,6 +385,10 @@ class Test extends AsyncResource {
383385 this . loc . file = entry . originalSource ;
384386 }
385387 }
388+
389+ if ( StringPrototypeStartsWith ( this . loc . file , 'file://' ) ) {
390+ this . loc . file = fileURLToPath ( this . loc . file ) ;
391+ }
386392 }
387393 }
388394
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