- 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
22 lines
591 B
TypeScript
22 lines
591 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "16", 10);
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["src/**/*.test.ts"],
|
|
maxWorkers,
|
|
fileParallelism: true,
|
|
pool: "threads",
|
|
// Enable isolate to allow parallel execution of tests with conflicting mocks
|
|
isolate: true,
|
|
coverage: {
|
|
enabled: false,
|
|
reporter: ["text", "html", "json"],
|
|
reportsDirectory: "./coverage",
|
|
include: ["src/**/*.ts"],
|
|
exclude: ["**/*.test.ts", "**/*.d.ts", "dist/**"],
|
|
},
|
|
},
|
|
});
|