-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: display dot report as wide as the terminal width #48038
test_runner: display dot report as wide as the terminal width #48038
Conversation
Review requested:
|
Co-authored-by: Moshe Atlow <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
for await (const { type } of source) { | ||
if (type === 'test:pass') { | ||
yield '.'; | ||
} | ||
if (type === 'test:fail') { | ||
yield 'X'; | ||
} | ||
if ((type === 'test:fail' || type === 'test:pass') && ++count % 20 === 0) { | ||
if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the ++count === columns
be nested inside of the top level if
? That way we only need to call getLineLength()
once from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The need to call again is in case of resize of the terminal
Co-authored-by: cjihrig <[email protected]>
Co-authored-by: cjihrig <[email protected]>
Landed in 7e0c12f |
PR-URL: #48038 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #48038 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs#48038 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs#48038 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs#48038 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
I had a problem with PR #47901 so recreating it