Files
moltbot/extensions/test-utils/runtime-env.ts
2026-03-04 02:35:13 -05:00

13 lines
291 B
TypeScript

import type { RuntimeEnv } from "openclaw/plugin-sdk/test-utils";
import { vi } from "vitest";
export function createRuntimeEnv(): RuntimeEnv {
return {
log: vi.fn(),
error: vi.fn(),
exit: vi.fn((code: number): never => {
throw new Error(`exit ${code}`);
}),
};
}