- Enable parallel file execution in core, engine, CLI, and dashboard packages via vitest.config.ts - Optimize backup tests using fake timers instead of real setTimeout delays - Add test optimization patterns to AGENTS.md documentation (fake timers, parallel execution) - Add changeset documenting the test speed improvements - Include test fixes for SettingsModal, engine tests, and git worktree mocks from KB-637
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/**"],
|
|
},
|
|
},
|
|
});
|