MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / fakeProcess

Function fakeProcess

packages/agent-core/test/tools/bash-env.test.ts:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17};
18
19function fakeProcess(): KaosProcess {
20 return {
21 stdin: { end: vi.fn(), write: vi.fn() } as unknown as Writable,
22 stdout: Readable.from([]),
23 stderr: Readable.from([]),
24 pid: 401,
25 exitCode: 0,
26 wait: vi.fn(async () => 0),
27 kill: vi.fn(async () => {}),
28 dispose: vi.fn(async () => {}),
29 };
30}
31
32const signal = new AbortController().signal;
33

Callers 2

captureSpawnEnvFunction · 0.70
bash-env.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected