docfast/vitest.config.ts
OpenClaw 55172856b1
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 18m42s
chore: upgrade vitest 3.2.4 → 4.0.18
Breaking changes addressed:
- vi.fn() mock factories: arrow → regular functions for constructor support
- Exclude dist/ from test resolution (vitest 4 simplified defaults)
- 672 tests pass, 0 tsc errors
2026-03-12 11:21:03 +01:00

13 lines
279 B
TypeScript

import { configDefaults, defineConfig } from "vitest/config";
export default defineConfig({
test: {
setupFiles: ["src/__tests__/setup.ts"],
testTimeout: 15000,
hookTimeout: 15000,
exclude: [
...configDefaults.exclude,
"**/dist/**",
],
},
});