Skip to content

Commit 476d925

Browse files
authored
test: give the package tests a 20 s timeout on Windows (#486)
The Windows runner timed out on Analog tests that run a full devframe setup while they take under 100 ms on Linux. Raise the per-test timeout on win32 only; Linux keeps the 5 s default. Refs #373
1 parent 7e5f0ef commit 476d925

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/devtools/vitest.config.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export default defineConfig({
66
// `--localstorage-file` and hides the jsdom one the tests rely on.
77
execArgv: ['--no-experimental-webstorage'],
88
setupFiles: ['src/__tests__/test-env.ts'],
9+
// The Windows runner is several times slower at the tests that run a full
10+
// devframe setup (the Analog source scan, the agent tools), and they hit the
11+
// 5 s default there while taking under 100 ms on Linux.
12+
testTimeout: process.platform === 'win32' ? 20_000 : 5_000,
913
// Used only with `--coverage` (`pnpm test:coverage`): a report, with no threshold to meet.
1014
coverage: {
1115
provider: 'v8',

0 commit comments

Comments
 (0)