(url: string, options: Record<string, unknown> = {})
| 172 | ) |
| 173 | |
| 174 | function providerConfig(url: string, options: Record<string, unknown> = {}) { |
| 175 | const config = testProviderConfig(url) |
| 176 | return { |
| 177 | ...config, |
| 178 | provider: { |
| 179 | test: { |
| 180 | ...config.provider.test, |
| 181 | options: { ...config.provider.test.options, ...options }, |
| 182 | }, |
| 183 | }, |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | async function delayedHeaderServer(delay: number): Promise<{ server: Server; url: string }> { |
| 188 | const server = createServer((_, res) => { |
no test coverage detected