Skip to content

Commit

Permalink
fix(browser): use preview provider when running in StackBlitz (#5836)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jun 3, 2024
1 parent e99451c commit 76e1358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export function resolveConfig(
resolved.browser.viewport.height ??= 896

if (resolved.browser.enabled && stdProvider === 'stackblitz')
resolved.browser.provider = 'none'
resolved.browser.provider = 'preview'

resolved.browser.api = resolveApiServerConfig(resolved.browser) || {
port: defaultBrowserPort,
Expand Down

0 comments on commit 76e1358

Please sign in to comment.