MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / expectMethodNotFound

Function expectMethodNotFound

__tests__/mcp-server-discover.test.ts:70–75  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

68}
69
70function expectMethodNotFound(stdout: string): void {
71 const replies = stdout.split('\n').filter((l) => l.trim()).map((l) => JSON.parse(l));
72 expect(replies).toEqual([
73 { jsonrpc: '2.0', id: 1, error: expect.objectContaining({ code: -32601 }) },
74 ]);
75}
76
77describe('server/discover probe (issue #2084)', () => {
78 let tempDir: string;

Callers 1

Calls 2

mapMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected