Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/promptfoo/promptfoo
/ fetch.test.ts
File
fetch.test.ts
test/fetch.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
* as fsPromises from
'node:fs/promises'
;
2
import
path from
'node:path'
;
3
4
import
{ Agent, interceptors, ProxyAgent } from
'undici'
;
Callers
nothing calls this directly
Calls
15
clearAgentCache
Function · 0.90
fetchWithProxy
Function · 0.90
mockProcessEnv
Function · 0.90
getRequestTimeoutMs
Function · 0.90
clearProxyEnv
Function · 0.90
getEnvBool
Function · 0.90
createMockResponse
Function · 0.90
fetchWithTimeout
Function · 0.90
isRateLimited
Function · 0.90
handleRateLimit
Function · 0.90
computeRateLimitWaitMs
Function · 0.90
fetchWithRetries
Function · 0.90
Tested by
no test coverage detected