Repository navigation
dot reporter causes the terminal to clear since Node v22.8.0 #55009
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.regressionIssues related to regressions.Issues related to regressions.test_runnerIssues and PRs related to the test runner subsystem.Issues 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.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Description
Activity
able to reproduce @redyetidev
- addedregressionIssues related to regressions.Issues related to regressions.test_runnerIssues and PRs related to the test runner subsystem.Issues 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.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
on Sep 19, 2024 @nodejs/test_runner - sounds like a simple fix, that is, assuming this is just one statement that clears the screen?
Reacted by Pietro MarchiniI'm taking a look
My guess is #53450 introducing
colors.clearin the dot reporter is the culprit, but I have not tested.@cjihrig, just tried, yes, the root cause is
clear- linked a pull request that will close this issuetest_runner: replace ansi clear with ansi reset #55013
on Sep 19, 2024 - addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.and removed
on Sep 21, 2024 - added a commit that references this issue
on Sep 21, 2024 - added a commit that references this issue
on Oct 4, 2024 - added 2 commits that reference this issue
on Nov 16, 2024
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.regressionIssues related to regressions.Issues related to regressions.test_runnerIssues and PRs related to the test runner subsystem.Issues 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.Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Version
22.8.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Create an empty
repro.test.jsfile.Run:
=> the terminal clears
Whereas it doesn't, when
--test-reporter=dotis 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