(input: string, init?: RequestInit)
| 434 | } |
| 435 | |
| 436 | async function getServerResponse(input: string, init?: RequestInit): Promise<Response> { |
| 437 | const fetchHandler = startStudioServerMock.mock.calls.at(-1)?.[0]?.handler as |
| 438 | | ((request: Request) => Promise<Response>) |
| 439 | | undefined |
| 440 | |
| 441 | if (!fetchHandler) { |
| 442 | throw new Error('Studio server fetch handler was not registered') |
| 443 | } |
| 444 | |
| 445 | return fetchHandler(new Request(input, init)) |
| 446 | } |
| 447 | |
| 448 | async function startStudioBff(executor: { |
| 449 | execute: ReturnType<typeof vi.fn> |
no outgoing calls
no test coverage detected