test_runner: replace ansi clear with ansi reset · nodejs/node@63c8f3d · GitHub
Skip to content

Commit 63c8f3d

Browse files
pmarchinimarco-ippolito
authored andcommitted
test_runner: replace ansi clear with ansi reset
PR-URL: #55013 Fixes: #55009 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent f849cf6 commit 63c8f3d

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/internal/test_runner/reporter/dot.js

Lines changed: 2 additions & 2 deletions

lib/internal/util/colors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
red: '',
1414
gray: '',
1515
clear: '',
16+
reset: '',
1617
hasColors: false,
1718
shouldColorize(stream) {
1819
if (process.env.FORCE_COLOR !== undefined) {
@@ -32,6 +33,7 @@ module.exports = {
3233
module.exports.red = hasColors ? '\u001b[31m' : '';
3334
module.exports.gray = hasColors ? '\u001b[90m' : '';
3435
module.exports.clear = hasColors ? '\u001bc' : '';
36+
module.exports.reset = hasColors ? '\u001b[0m' : '';
3537
module.exports.hasColors = hasColors;
3638
}
3739
},
Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)