From 7828e77b04de824c1b10ad84c4e9263c38fd0e1a Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 14 Feb 2026 14:13:52 +0900 Subject: [PATCH] fix(test): use string containment check for ANSI-wrapped console.log output The waitForEventProcessorShutdown test was comparing exact string match against console.log spy, but picocolors wraps the message in ANSI dim codes. On CI (bun 1.3.9) this caused the assertion to fail. Use string containment check instead of exact argument match. --- src/cli/run/runner.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/run/runner.test.ts b/src/cli/run/runner.test.ts index b7d532949..03f1b6e1a 100644 --- a/src/cli/run/runner.test.ts +++ b/src/cli/run/runner.test.ts @@ -117,7 +117,8 @@ describe("waitForEventProcessorShutdown", () => { //#then const elapsed = performance.now() - start expect(elapsed).toBeGreaterThanOrEqual(timeoutMs) - expect(spy).toHaveBeenCalledWith( + const callArgs = spy.mock.calls.flat().join("") + expect(callArgs).toContain( `[run] Event stream did not close within ${timeoutMs}ms after abort; continuing shutdown.`, ) } finally {