(overrides: ClientConfig = {})
| 29 | * Create a PostgreSQL client with default e2e test configuration |
| 30 | */ |
| 31 | export function makePgClient(overrides: ClientConfig = {}): Client { |
| 32 | return new Client({ |
| 33 | host: POSTGRES_HOST, |
| 34 | port: POSTGRES_PORT, |
| 35 | user: POSTGRES_USER, |
| 36 | password: POSTGRES_PASSWORD, |
| 37 | database: POSTGRES_DB, |
| 38 | options: `-csearch_path=${TEST_SCHEMA}`, |
| 39 | ...overrides, |
| 40 | }) |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Wait for Electric server to be ready |
no outgoing calls
no test coverage detected