Skip to content

bug(ci): loader.test.ts sanitizes control characters fails intermittently in CI #44536

@who96

Description

@who96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions