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

Function mockSubagentHost

packages/agent-core/test/tools/agent.test.ts:18–22  ·  view source on GitHub ↗
(
  host: T,
)

Source from the content-addressed store, hash-verified

16}
17
18function mockSubagentHost<T extends Pick<SessionSubagentHost, 'spawn'> & Partial<SessionSubagentHost>>(
19 host: T,
20): T & SessionSubagentHost {
21 return { resume: vi.fn(), ...host } as unknown as T & SessionSubagentHost;
22}
23
24function agentTool(
25 host: SessionSubagentHost,

Callers 1

agent.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected