UNPKG

@accounter/server

Version:
12 lines (11 loc) 387 B
import type { Pool } from 'pg'; import { withTestTransaction } from './test-transaction.js'; export declare class TestDatabase { private pool; connect(): Promise<Pool>; getPool(): Pool; ensureLatestSchema(): Promise<void>; seedAdmin(): Promise<void>; withTransaction<T>(fn: Parameters<typeof withTestTransaction<T>>[1]): Promise<T>; close(): Promise<void>; }