A userEvent-heavy colony form spec took 5.1 s inside the Docker build and hit the 5 s default. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
21 lines
530 B
TypeScript
21 lines
530 B
TypeScript
import path from "node:path";
|
||
import { defineConfig } from "vitest/config";
|
||
import react from "@vitejs/plugin-react";
|
||
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
test: {
|
||
environment: "jsdom",
|
||
setupFiles: ["./vitest.setup.ts"],
|
||
globals: true,
|
||
// userEvent-heavy form specs take 1–2 s locally and can pass 5 s on a
|
||
// loaded CI runner (Docker build); 15 s keeps real hangs visible.
|
||
testTimeout: 15_000,
|
||
},
|
||
resolve: {
|
||
alias: {
|
||
"@": path.resolve(__dirname, "./src"),
|
||
},
|
||
},
|
||
});
|