Skip to content

Unable to FORCE_COLOR with test runner #55383

Description

@deadbeef84

Version

v22.9.0

Platform

Linux deadbeef 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

test_runner

What steps will reproduce the bug?

When running the test-runner outside of a tty, it's not possible to force colors.

FORCE_COLOR=1 node --test | cat

How often does it reproduce? Is there a required condition?

No condition.

What is the expected behavior? Why is that the expected behavior?

When FORCE_COLOR is set to 1, 2 or 3, I expect ansi color codes to be written to stdout even if it's not in a tty.

What do you see instead?

It doesn't respect the FORCE_COLOR and no ansi color codes are in the output.

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions