fix: set hookTimeout for smoke tests to prevent beforeAll timeouts

This commit is contained in:
Matt Kane
2026-04-02 16:30:43 +01:00
parent 8e28cfc5d6
commit 25a327baf2

View File

@@ -9,5 +9,11 @@ export default defineConfig({
"tests/integration/cli/**/*.test.ts", "tests/integration/cli/**/*.test.ts",
"tests/integration/client/**/*.test.ts", "tests/integration/client/**/*.test.ts",
], ],
// Smoke tests boot real Astro dev servers in beforeAll hooks.
// Default hookTimeout (10s) is too short -- server startup +
// migrations + seed can take 30-60s, especially on first run
// when pnpm build hasn't been cached.
testTimeout: 30_000,
hookTimeout: 120_000,
}, },
}); });