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 {
14
14
PromisePrototypeThen,
15
15
PromiseResolve,
16
16
SafePromisePrototypeFinally,
17
+ StringPrototypeStartsWith,
17
18
StringPrototypeTrim,
18
19
ReflectApply,
19
20
RegExpPrototypeExec,
@@ -58,6 +59,7 @@ const {
58
59
} = require ( 'internal/validators' ) ;
59
60
const { setTimeout } = require ( 'timers' ) ;
60
61
const { TIMEOUT_MAX } = require ( 'internal/timers' ) ;
62
+ const { fileURLToPath } = require ( 'internal/url' ) ;
61
63
const { availableParallelism } = require ( 'os' ) ;
62
64
const { bigint : hrtime } = process . hrtime ;
63
65
const kCallbackAndPromisePresent = 'callbackAndPromisePresent' ;
@@ -383,6 +385,10 @@ class Test extends AsyncResource {
383
385
this . loc . file = entry . originalSource ;
384
386
}
385
387
}
388
+
389
+ if ( StringPrototypeStartsWith ( this . loc . file , 'file://' ) ) {
390
+ this . loc . file = fileURLToPath ( this . loc . file ) ;
391
+ }
386
392
}
387
393
}
388
394
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ TAP version 13
3
3
not ok 1 - fails
4
4
---
5
5
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'
7
7
failureType: 'testCodeFailure'
8
8
error: |-
9
9
Expected values to be strictly equal:
You can’t perform that action at this time.
0 commit comments