MCPcopy
hub / github.com/prisma/prisma / getBffResponse

Function getBffResponse

packages/cli/src/__tests__/Studio.vitest.ts:426–434  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

424})
425
426async 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
436async function getServerResponse(input: string, init?: RequestInit): Promise<Response> {
437 const fetchHandler = startStudioServerMock.mock.calls.at(-1)?.[0]?.handler as

Callers 1

Studio.vitest.tsFile · 0.85

Calls 1

getServerResponseFunction · 0.85

Tested by

no test coverage detected