MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createMockCallableTool

Function createMockCallableTool

packages/core/src/tools/tool-registry.test.ts:94–99  ·  view source on GitHub ↗
(
  toolDeclarations: FunctionDeclaration[],
)

Source from the content-addressed store, hash-verified

92
93// Helper to create a mock CallableTool for specific test needs
94const createMockCallableTool = (
95 toolDeclarations: FunctionDeclaration[],
96): Mocked<CallableTool> => ({
97 tool: vi.fn().mockResolvedValue({ functionDeclarations: toolDeclarations }),
98 callTool: vi.fn(),
99});
100
101const baseConfigParams: ConfigParameters = {
102 cwd: '/tmp',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected