Files
storkit/frontend/vitest.config.ts
Dave eb24168e9e 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>
2026-02-27 11:46:43 +00:00

23 lines
542 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [react()],
define: {
__BUILD_TIME__: JSON.stringify("2026-01-01T00:00:00.000Z"),
},
test: {
environment: "jsdom",
globals: true,
testTimeout: 10_000,
setupFiles: ["./src/setupTests.ts"],
css: true,
exclude: ["tests/e2e/**", "node_modules/**"],
coverage: {
provider: "v8",
reporter: ["text", "json-summary"],
reportsDirectory: "./coverage",
},
},
});