MCPcopy
hub / github.com/promptfoo/promptfoo / clearProxyEnv

Function clearProxyEnv

test/util/utils.ts:135–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133] as const;
134
135export function clearProxyEnv(): void {
136 for (const key of PROXY_ENV_KEYS) {
137 Reflect.deleteProperty(process.env, key);
138 }
139}
140
141export function mockGlobal<T>(name: string, value: T): () => void {
142 const descriptor = Object.getOwnPropertyDescriptor(globalThis, name);

Callers 1

fetch.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…