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.
This commit is contained in:
YeonGyu-Kim
2026-02-14 14:13:52 +09:00
parent 37e1f23ae6
commit 7828e77b04
+2 -1
View File
@@ -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 {