MCPcopy
hub / github.com/MiniMax-AI/cli / jsonRes

Function jsonRes

test/polling/poll.test.ts:26–33  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

24};
25
26function jsonRes(body: unknown): Response {
27 return {
28 status: 200,
29 ok: true,
30 headers: new Headers({ 'Content-Type': 'application/json' }),
31 json: async () => body,
32 } as Response;
33}
34
35const originalFetch = globalThis.fetch;
36

Callers 1

poll.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected