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

Function fetchImpl

src/commands/test.run.spec.ts:1797–1810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1795 const { credentialsPath } = makeCreds();
1796 // Inject a request-id header in the response so the CLI can surface it.
1797 const fetchImpl: typeof globalThis.fetch = async () =>
1798 new Response(
1799 JSON.stringify({
1800 runId: 'run_c3',
1801 status: 'queued',
1802 enqueuedAt: '2026-05-15T10:00:00.000Z',
1803 codeVersion: 'v1',
1804 targetUrl: 'https://example.com',
1805 }),
1806 {
1807 status: 200,
1808 headers: { 'content-type': 'application/json', 'x-request-id': 'req_c3_hidden' },
1809 },
1810 );
1811 const stderrLines: string[] = [];
1812 await runTestRun(
1813 {

Callers 1

streamPresignedBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected