(body: unknown)
| 424 | }) |
| 425 | |
| 426 | async function getBffResponse(body: unknown): Promise<Response> { |
| 427 | return getServerResponse('http://localhost:5555/bff', { |
| 428 | body: JSON.stringify(body), |
| 429 | headers: { |
| 430 | 'content-type': 'application/json', |
| 431 | }, |
| 432 | method: 'POST', |
| 433 | }) |
| 434 | } |
| 435 | |
| 436 | async function getServerResponse(input: string, init?: RequestInit): Promise<Response> { |
| 437 | const fetchHandler = startStudioServerMock.mock.calls.at(-1)?.[0]?.handler as |
no test coverage detected