Skip to content

Commit 83cc68e

Browse files
committed
upd
1 parent 298974a commit 83cc68e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vitest.browser.config.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function buildBrowserInstances() {
109109
waitforTimeout: 30000, // 30 seconds wait timeout - matches test expectations
110110
waitforInterval: 1000, // Poll every 1 second - faster feedback
111111
keepAlive: true,
112-
keepAliveInterval: 30000,
112+
keepAliveInterval: 10000, // Send keepalive every 10 seconds to prevent WebSocket disconnections
113113
}];
114114
}
115115
}
@@ -149,16 +149,16 @@ export default defineConfig({
149149
isolate: false,
150150
fileParallelism: true,
151151
// Reduce concurrency for BrowserStack to minimize tunnel load and WebSocket connection issues
152-
maxConcurrency: 3,
152+
maxConcurrency: useLocalBrowser ? 5 : 1,
153153
onConsoleLog: () => true,
154154
browser: {
155155
enabled: true,
156156
provider: 'webdriverio',
157157
headless: false,
158158
instances: buildBrowserInstances(),
159-
connectTimeout: 300000,
159+
connectTimeout: 300000,
160160
},
161-
testTimeout: 60000,
161+
testTimeout: 60000,
162162
hookTimeout: 30000,
163163
include: [
164164
'lib/**/*.spec.ts',

0 commit comments

Comments
 (0)