Skip to content

Commit acdbbb6

Browse files
committed
debug: enable WEBAPP_TEST_VERBOSE in CI; pre-warm prisma pool before tests start
1 parent 63030bf commit acdbbb6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/e2e-webapp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,5 @@ jobs:
8787

8888
- name: 🧪 Run Webapp E2E Tests
8989
run: cd apps/webapp && pnpm exec vitest run --config vitest.e2e.config.ts --reporter=default
90+
env:
91+
WEBAPP_TEST_VERBOSE: "1"

internal-packages/testcontainers/src/webapp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export async function startTestServer(): Promise<TestServer> {
162162
redisContainer = rc;
163163

164164
prisma = new PrismaClient({ datasources: { db: { url: pg.url } } });
165+
await prisma.$connect(); // pre-warm pool; surface connection failures before tests start
165166
const started = await startWebapp(pg.url, { host: rc.getHost(), port: rc.getPort() });
166167
webapp = started.instance;
167168
stopWebapp = started.stop;

0 commit comments

Comments
 (0)