- Enable parallel file execution in vitest configs for core, engine, CLI, and dashboard packages - Optimize backup tests with fake timers for faster, deterministic execution - Fix SettingsModal temporal dead zone by moving declaration before useCallback - Fix engine tests with missing git branch delete mock and correct branch names - Fix git worktree list mock and mission store mock in CLI tests - Add changeset documenting test optimization patterns - Update AGENTS.md with test optimization best practices
19 lines
469 B
TypeScript
19 lines
469 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,
|
|
coverage: {
|
|
enabled: false,
|
|
reporter: ["text", "html", "json"],
|
|
reportsDirectory: "./coverage",
|
|
include: ["src/**/*.ts"],
|
|
exclude: ["**/*.test.ts", "**/*.d.ts", "dist/**"],
|
|
},
|
|
},
|
|
});
|