MCPcopy
hub / github.com/prisma/prisma / startStudioBff

Function startStudioBff

packages/cli/src/__tests__/Studio.vitest.ts:448–461  ·  view source on GitHub ↗
(executor: {
  execute: ReturnType<typeof vi.fn>
  executeTransaction?: ReturnType<typeof vi.fn>
  lintSql?: ReturnType<typeof vi.fn>
})

Source from the content-addressed store, hash-verified

446}
447
448async function startStudioBff(executor: {
449 execute: ReturnType<typeof vi.fn>
450 executeTransaction?: ReturnType<typeof vi.fn>
451 lintSql?: ReturnType<typeof vi.fn>
452}) {
453 createPostgresJSExecutorMock.mockReturnValueOnce(executor)
454
455 const { Studio } = await import('../Studio')
456
457 await Studio.new().parse(
458 ['--browser', 'none', '--port', '5555', '--url', 'postgresql://user:password@localhost:5432/db'],
459 defaultTestConfig(),
460 )
461}

Callers 1

Studio.vitest.tsFile · 0.85

Calls 3

defaultTestConfigFunction · 0.90
parseMethod · 0.65
newMethod · 0.45

Tested by

no test coverage detected