MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / replying

Function replying

graph-ui/src/provider/error-observer.test.ts:27–34  ·  view source on GitHub ↗
(status: number, body: string)

Source from the content-addressed store, hash-verified

25}
26
27function replying(status: number, body: string): typeof globalThis.fetch {
28 return (() => Promise.resolve({
29 ok: status >= 200 && status < 300,
30 status,
31 statusText: '',
32 text: () => Promise.resolve(body),
33 })) as unknown as typeof globalThis.fetch;
34}
35
36describe('reportError', () => {
37 it('reaches every listener, survives one that throws, and is silent without any', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected