Files
paperclip/vitest.config.ts
Mikhail Batukhtin c98af52590 test(codex-local): regression for CodexRpcClient spawn ENOENT
Add a Vitest case that mocks `node:child_process.spawn` so the child
emits `error` (ENOENT) after the constructor attaches listeners.
`getQuotaWindows()` must resolve with `ok: false` instead of leaving an
unhandled `error` event on the process.

Register `packages/adapters/codex-local` in the root Vitest workspace.

Document in DEVELOPING.md that a missing `codex` binary should not take
down the API server during quota polling.
2026-03-29 14:43:51 +03:00

15 lines
262 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
projects: [
"packages/db",
"packages/adapters/codex-local",
"packages/adapters/opencode-local",
"server",
"ui",
"cli",
],
},
});