e65e2aec72
CI / check (pull_request) Failing after 8m0s
- Replace vitest with bun:test across all 8 packages (47 test files) - vi.spyOn → spyOn, vi.restoreAllMocks() → mock.restore() (3 files) - toHaveBeenCalledOnce → toHaveBeenCalledTimes(1) (bun:test compat) - Delete all vitest.config.ts files - Remove vitest from devDependencies - Add preload.ts for process.exit mock (cli-workflow) - Fix import ordering (biome check --write) All tests pass. Closes #601
8 lines
175 B
TypeScript
8 lines
175 B
TypeScript
const originalExit = process.exit;
|
|
|
|
process.exit = ((code?: number) => {
|
|
throw new Error(`process.exit(${code ?? 1})`);
|
|
}) as typeof process.exit;
|
|
|
|
export { originalExit };
|