fix: increase vitest testTimeout to 10s to prevent flaky App mount test

The "calls getCurrentProject() on mount" test uses vi.resetModules() with
dynamic imports which can be slow. The per-test 10_000ms timeout was not
being respected by vitest, causing it to fail at the 5000ms default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dave
2026-02-27 11:46:43 +00:00
parent 15a1783d2e
commit eb24168e9e

View File

@@ -9,6 +9,7 @@ export default defineConfig({
test: { test: {
environment: "jsdom", environment: "jsdom",
globals: true, globals: true,
testTimeout: 10_000,
setupFiles: ["./src/setupTests.ts"], setupFiles: ["./src/setupTests.ts"],
css: true, css: true,
exclude: ["tests/e2e/**", "node_modules/**"], exclude: ["tests/e2e/**", "node_modules/**"],