/** * Test helper utilities for DDP testing */ import { Client } from 'pg'; import type { IDatabaseConnection } from '../types'; /** * Test database configuration */ export declare const TEST_DB_CONFIG: IDatabaseConnection; /** * Create a test database client */ export declare function createTestClient(): Promise; /** * Clean up test database client */ export declare function cleanupTestClient(client: Client): Promise; /** * Execute SQL in test database */ export declare function executeTestSQL(sql: string): Promise; /** * Query test database */ export declare function queryTestDB(sql: string, params?: unknown[]): Promise; /** * Check if test database is available */ export declare function isTestDatabaseAvailable(): Promise; /** * Reset test database schema */ export declare function resetTestSchema(): Promise; /** * Setup test database with sample data */ export declare function setupTestDatabase(): Promise; /** * Mock database connection for testing */ export declare function createMockConnection(): IDatabaseConnection; /** * Mock client for testing */ export declare class MockClient { query: jest.Mock; connect: jest.Mock; end: jest.Mock; } /** * Create a mock client with predefined responses */ export declare function createMockClient(responses?: unknown[]): MockClient; //# sourceMappingURL=testHelpers.d.ts.map