From adcf1c3caa5070edc139a85d7c6e9a7e02f214bf Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Tue, 21 Apr 2026 02:33:06 +0000 Subject: [PATCH] feat: re-export getDbConnections and types for two-phase test patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-exports getConnections (as getDbConnections), GetConnectionResult, GetConnectionOpts, and PgTestClient from pgsql-test through the @constructive-io/graphql-test package. This enables tests that need to provision a database first (creating dynamic tables), then build a GraphQL schema over those tables in a second phase — without importing pgsql-test directly. --- graphql/test/src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphql/test/src/index.ts b/graphql/test/src/index.ts index 26bc6c365..f3eb66ea4 100644 --- a/graphql/test/src/index.ts +++ b/graphql/test/src/index.ts @@ -15,5 +15,11 @@ export { GraphQLTest } from './graphile-test'; export * from './get-connections'; export { seed, snapshot } from 'pgsql-test'; +// Re-export low-level DB connection utilities for advanced two-phase patterns +// (e.g. provision first, then build GraphQL schema over dynamic tables). +export { getConnections as getDbConnections } from 'pgsql-test'; +export type { GetConnectionResult, GetConnectionOpts } from 'pgsql-test'; +export type { PgTestClient } from 'pgsql-test/test-client'; + // Export GraphQL test adapter for SDK integration export { GraphQLTestAdapter } from './adapter';