MCPcopy
hub / github.com/promptfoo/promptfoo / monkeyPatchFetch.test.ts

File monkeyPatchFetch.test.ts

test/monkeyPatchFetch.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
2import { CONSENT_ENDPOINT, EVENTS_ENDPOINT, R_ENDPOINT } from '../src/constants';
3import { CLOUD_API_HOST, cloudConfig } from '../src/globalConfig/cloud';
4import logger, { logRequestResponse } from '../src/logger';

Callers

nothing calls this directly

Calls 5

createMockResponseFunction · 0.90
itFunction · 0.85
monkeyPatchFetchFunction · 0.85
getMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected