From 08f17329bfa06d9e1c575da11563a4e2e4e3265e Mon Sep 17 00:00:00 2001 From: Makisuo Date: Fri, 4 Dec 2026 16:55:54 +0100 Subject: [PATCH] test(cli): restore the exit code to 0, not undefined, after the chDB streak test Assigning undefined back to process.exitCode is a no-op in Bun, so the 78 a chDB refusal sets leaked out whenever this file ran before any other set the exit code: the CLI suite failed with every test passing. --- apps/cli/test/in-memory-store.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/cli/test/in-memory-store.test.ts b/apps/cli/test/in-memory-store.test.ts index 349d561466..81a2f11462 100644 --- a/apps/cli/test/in-memory-store.test.ts +++ b/apps/cli/test/in-memory-store.test.ts @@ -151,7 +151,9 @@ describe("inMemoryStartFailuresKey", () => { const exitCode = process.exitCode expect(Exit.isFailure(await fail())).toBe(true) await fail() - process.exitCode = exitCode + // `?? 0`, not the raw value: assigning `undefined` back is a no-op in Bun, so the 78 a + // chDB refusal sets would leak out and fail the whole run with every test passing. + process.exitCode = exitCode ?? 0 const record = await Effect.runPromise( readStartFailureRecord(key).pipe(Effect.provide(BunServices.layer)),