(opts?: RequestInit)
| 237 | * @returns RequestInit with x-invocation-id header added |
| 238 | */ |
| 239 | export function withInvocationId(opts?: RequestInit): RequestInit { |
| 240 | const invocationId = `test:${nanoid()}` |
| 241 | return { |
| 242 | ...opts, |
| 243 | headers: { |
| 244 | ...opts?.headers, |
| 245 | 'x-invocation-id': invocationId, |
| 246 | }, |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | export function renderViaHTTP( |
| 251 | appPort: string | number, |
no test coverage detected