mirror of
https://github.com/paperclipai/paperclip
synced 2026-04-25 17:25:15 +02:00
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.
15 lines
262 B
TypeScript
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",
|
|
],
|
|
},
|
|
});
|