MCPcopy
hub / github.com/prisma/prisma / getServerResponse

Function getServerResponse

packages/cli/src/__tests__/Studio.vitest.ts:436–446  ·  view source on GitHub ↗
(input: string, init?: RequestInit)

Source from the content-addressed store, hash-verified

434}
435
436async 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
448async function startStudioBff(executor: {
449 execute: ReturnType<typeof vi.fn>

Callers 2

Studio.vitest.tsFile · 0.85
getBffResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected