Description
src/hooks/loader.test.ts sanitizes control characters in loader error logs (line 368) fails intermittently in GitHub Actions CI but passes on local machines.
Reproduction
Fails in CI (all 3 matrix entries): checks (bun), checks (node), checks-windows.
Passes locally (macOS, also with CI=true FORCE_COLOR=0 and NO_COLOR=1).
Also observed on other unrelated PRs: #44397, #44390 — confirming this is not PR-specific.
Error
expect(messages).not.toContain(ANSI_RED) fails because CI logger output includes color codes despite non-TTY environment.
Impact
928 passed, 1 failed — only this single test is affected. Blocks CI green status on multiple open PRs.