Skip to content

Commit 1a1e231

Browse files
committed
fix: add vitest config with 3-minute timeouts for CI
- Tests were failing in CI with 'Hook timed out in 10000ms' errors - nuxi generate commands in beforeAll hooks need more time in CI - Set 3-minute timeouts for CI, 1-minute for local development
1 parent b5a5d33 commit 1a1e231

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vitest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'vitest/config'
2+
3+
export default defineConfig({
4+
test: {
5+
// 3 minutes for CI, 1 minute locally
6+
testTimeout: process.env.CI ? 180000 : 60000,
7+
hookTimeout: process.env.CI ? 180000 : 60000,
8+
},
9+
})

0 commit comments

Comments
 (0)