Skip to content

Test test/parallel/test-runner-run.mjs fails when run from a TTY with color supportΒ #54551

@cjihrig

Description

@cjihrig

Version

main

Platform

all

Subsystem

test

What steps will reproduce the bug?

node test/parallel/test-runner-run.mjs

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

100% of the time for me

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

The test passes.

What do you see instead?

βœ– should be piped with dot (163.96875ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
    [
  +   '\x1B[32m.\x1Bc',
  -   '.',
      '\n'
    ]

Additional information

The test does not account for the possibility of output with color support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions