diff --git a/frontend/tests/helpers/postgres-fixture.ts b/frontend/tests/helpers/postgres-fixture.ts index ac7fe505..b696e6bd 100644 --- a/frontend/tests/helpers/postgres-fixture.ts +++ b/frontend/tests/helpers/postgres-fixture.ts @@ -115,6 +115,16 @@ export function startPostgresFixture(): PostgresFixture { ); } catch (error) { try { + try { + // The teardown below deletes the only account of why the server refused to start. + execFileSync( + "docker", + [...composeArguments, "logs", "--no-color", "--tail", "80", "postgres"], + { env: environment, stdio: "inherit" }, + ); + } catch { + // Preserve the original startup failure. + } try { execFileSync( "docker",