Skip to content

Commit bc6ec31

Browse files
committed
fix: enable inspector in browser mode via cli instead of plugin
1 parent 1eaddb5 commit bc6ec31

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/extension/src/debug.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,13 @@ export async function debugTests(
198198
},
199199
).then(
200200
(fullfilled) => {
201+
log.info('[DEBUG] Browser debugger started')
201202
metadata.rpc.onBrowserDebug(fullfilled).catch(() => {})
202203
if (fullfilled) {
203-
log.info('[DEBUG] Secondary debug launch config started')
204+
log.info('[DEBUG] Browser debugger attached')
204205
}
205206
else {
206-
log.error('[DEBUG] Secondary debug launch config failed')
207+
log.error('[DEBUG] Browser debugger failed to attach')
207208
}
208209
},
209210
(error) => {

packages/worker/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export async function initVitest(
7878
meta.pnpLoader,
7979
]
8080
: [],
81+
inspect: typeof data.debug === 'object'
82+
? `${data.debug.host}:${data.debug.port}`
83+
: undefined,
8184
}
8285
const vitest = await vitestModule.createVitest(
8386
'test',

0 commit comments

Comments
 (0)