Skip to content

dot reporter causes the terminal to clear since Node v22.8.0 #55009

Description

@adrienjoly

Version

22.8.0

Platform

arwin MBP-AJ-2023.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64

Subsystem

No response

What steps will reproduce the bug?

Create an empty repro.test.js file.

Run:

node --test-reporter=dot --test repro.test.js

=> the terminal clears

Whereas it doesn't, when --test-reporter=dot is not provided.

Both cases were working fine with Node v22.5.1.

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

Systematically.

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

The terminal should not clear, so the test results and stdout from previous commands remain on screen.

What do you see instead?

Blank terminal window.

Additional information

No response

Activity

  1. pmarchini commented on Sep 19, 2024

    @pmarchini
    Member

    able to reproduce @redyetidev

  2. added
    regressionIssues related to regressions.
    test_runnerIssues and PRs related to the test runner subsystem.
    v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
    on Sep 19, 2024
  3. avivkeller commented on Sep 19, 2024

    @avivkeller
    Member

    @nodejs/test_runner - sounds like a simple fix, that is, assuming this is just one statement that clears the screen?

  4. pmarchini commented on Sep 19, 2024

    @pmarchini
    Member

    I'm taking a look

  5. cjihrig commented on Sep 19, 2024

    @cjihrig
    Contributor

    My guess is #53450 introducing colors.clear in the dot reporter is the culprit, but I have not tested.

  6. pmarchini commented on Sep 19, 2024

    @pmarchini
    Member

    @cjihrig, just tried, yes, the root cause is clear

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

    confirmed-bugIssues and PRs for confirmed bugs.regressionIssues related to regressions.test_runnerIssues and PRs related to the test runner subsystem.v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions