(executor: {
execute: ReturnType<typeof vi.fn>
executeTransaction?: ReturnType<typeof vi.fn>
lintSql?: ReturnType<typeof vi.fn>
})
| 446 | } |
| 447 | |
| 448 | async 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 | } |
no test coverage detected