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 {
15
15
PromisePrototypeThen,
16
16
PromiseResolve,
17
17
SafePromisePrototypeFinally,
18
+ StringPrototypeStartsWith,
18
19
ReflectApply,
19
20
RegExpPrototypeExec,
20
21
SafeMap,
@@ -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' ;
@@ -385,6 +387,10 @@ class Test extends AsyncResource {
385
387
this . loc . file = entry . originalSource ;
386
388
}
387
389
}
390
+
391
+ if ( StringPrototypeStartsWith ( this . loc . file , 'file://' ) ) {
392
+ this . loc . file = fileURLToPath ( this . loc . file ) ;
393
+ }
388
394
}
389
395
}
390
396
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