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

Function recordCall

apps/cli/src/device-login.test.ts:32–37  ·  view source on GitHub ↗
(calls: Array<FetchCall>, url: string, init: RequestInit | undefined)

Source from the content-addressed store, hash-verified

30};
31
32const recordCall = (calls: Array<FetchCall>, url: string, init: RequestInit | undefined): void => {
33 calls.push({
34 url,
35 headers: Object.fromEntries(new Headers(init?.headers).entries()),
36 });
37};
38
39afterEach(() => {
40 globalThis.fetch = originalFetch;

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected