File tree 2 files changed +3
-4
lines changed
packages/vitest/src/runtime
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { createRequire } from 'node:module'
2
-
2
+ import { pathToFileURL } from 'node:url'
3
3
import type { ContextRPC , ResolvedConfig } from '../types'
4
4
5
5
const __require = createRequire ( import . meta. url )
@@ -37,7 +37,7 @@ export function setupInspect(ctx: ContextRPC) {
37
37
session . post ( 'Debugger.enable' )
38
38
session . post ( 'Debugger.setBreakpointByUrl' , {
39
39
lineNumber : 0 ,
40
- url : new URL ( firstTestFile , import . meta . url ) . href ,
40
+ url : pathToFileURL ( firstTestFile ) ,
41
41
} )
42
42
}
43
43
}
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ import type { InspectorNotification } from 'node:inspector'
2
2
import { expect , test } from 'vitest'
3
3
import WebSocket from 'ws'
4
4
5
- import { isWindows } from '../../../packages/vite-node/src/utils'
6
5
import { runVitestCli } from '../../test-utils'
7
6
8
7
type Message = Partial < InspectorNotification < any > >
9
8
10
- test . skipIf ( isWindows ) ( '--inspect-brk stops at test file' , async ( ) => {
9
+ test ( '--inspect-brk stops at test file' , async ( ) => {
11
10
const { vitest, waitForClose } = await runVitestCli (
12
11
'--root' ,
13
12
'fixtures/inspect' ,
You can’t perform that action at this time.
0 commit comments