MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / makeFetch

Function makeFetch

src/commands/usage.test.ts:50–58  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

48};
49
50function makeFetch(body: unknown, status = 200): UsageDeps['fetchImpl'] {
51 return vi.fn(
52 async () =>
53 new Response(JSON.stringify(body), {
54 status,
55 headers: { 'content-type': 'application/json' },
56 }),
57 ) as unknown as UsageDeps['fetchImpl'];
58}
59
60let credentialsPath: string;
61

Callers 1

usage.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected