MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / jsonResponse

Function jsonResponse

packages/react/src/api/shell-host.test.ts:16–20  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

14);
15
16const jsonResponse = (body: unknown, status = 200): Response =>
17 new Response(JSON.stringify(body), {
18 status,
19 headers: { "content-type": "application/json" },
20 });
21
22/** Records what the adapter put on the wire, so the assertions are about the
23 * request the server actually receives rather than the adapter's internals. */

Callers 2

completedFunction · 0.70
shell-host.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected