Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc6511a

Browse filesBrowse files
MoLowRafaelGSS
authored andcommitted
test_runner: color errors only when colors are available
PR-URL: #47394 Fixes: #47393 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 463361e commit bc6511a
Copy full SHA for bc6511a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
  • lib/internal/test_runner/reporter
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/test_runner/reporter/spec.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/reporter/spec.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const {
1414
const assert = require('assert');
1515
const Transform = require('internal/streams/transform');
1616
const { inspectWithNoCustomRetry } = require('internal/errors');
17-
const { green, blue, red, white, gray } = require('internal/util/colors');
17+
const { green, blue, red, white, gray, hasColors } = require('internal/util/colors');
1818
const { getCoverageReport } = require('internal/test_runner/utils');
1919

20-
const inspectOptions = { __proto__: null, colors: true, breakLength: Infinity };
20+
const inspectOptions = { __proto__: null, colors: hasColors, breakLength: Infinity };
2121

2222
const colors = {
2323
'__proto__': null,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.