Files
fusion/packages/desktop/vitest.config.ts
gsxdsm 325776b036 perf: speed up tests with parallel execution and fix type errors
- Add isolate: true to vitest configs for safe parallel test execution
- Simplify engine test script from 7 sequential runs to single parallel run
- Fix TypeScript type errors in Column, Board, WorktreeGroup, and App components
- Fix board-mobile test to match current TaskCard tap behavior
- Relax App deep-link test to handle React Strict Mode behavior
2026-04-08 23:53:14 -07:00

32 lines
711 B
TypeScript

import { defineConfig } from "vitest/config";
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "16", 10);
export default defineConfig({
test: {
testTimeout: 30_000,
hookTimeout: 30_000,
maxWorkers,
fileParallelism: true,
passWithNoTests: true,
projects: [
{
test: {
name: "desktop",
include: ["src/__tests__/**/*.test.ts"],
pool: "threads",
isolate: true,
},
},
{
test: {
name: "desktop-renderer",
include: ["src/renderer/**/*.test.ts", "src/renderer/**/*.test.tsx"],
environment: "jsdom",
isolate: true,
},
},
],
},
});