Skip to content

Commit 56f8137

Browse files
committed
extra timeout for windows tests
1 parent 696d2a3 commit 56f8137

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vitest.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { defineConfig } from 'vitest/config';
33
const ONE_SECOND = 1_000;
44

55
export default defineConfig({
6+
/**
7+
* add a 3x factor for windows tests... because windows 😭
8+
*/
69
test: {
7-
testTimeout: 240 * ONE_SECOND,
8-
hookTimeout: 240 * ONE_SECOND,
10+
testTimeout: 240 * ONE_SECOND * (process.platform === 'win32' ? 3 : 1),
11+
hookTimeout: 240 * ONE_SECOND * (process.platform === 'win32' ? 3 : 1),
912
},
1013
});

0 commit comments

Comments
 (0)