import { configDefaults, defineConfig } from "vitest/config"; // vitest does not read .gitignore when looking for tests. A checkout nested // under .claude/ has its own test/ tree, and without this exclude the suite // runs once per nested checkout and still reports success. // // vitest starts one worker per CPU core by default, and a shared host has // dozens. Four keep the suite well inside the Dockerfile's time limit. vitest // 2 rejects a maxWorkers below its default minWorkers, so minWorkers is set // too. export default defineConfig({ test: { exclude: [...configDefaults.exclude, ".claude/**"], minWorkers: 1, maxWorkers: 4, }, });