()
| 62 | } |
| 63 | |
| 64 | function getProxyDispatcher() { |
| 65 | const config = getConfig(); |
| 66 | const proxyUrl = config.proxy; |
| 67 | |
| 68 | if (!proxyUrl) return undefined; |
| 69 | |
| 70 | if (!cachedAgent) { |
| 71 | cachedAgent = new MockProxyAgent(proxyUrl); |
| 72 | } |
| 73 | |
| 74 | return cachedAgent; |
| 75 | } |
| 76 | |
| 77 | function getProxyFetchOptions() { |
| 78 | const dispatcher = getProxyDispatcher(); |
no test coverage detected