mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test_runner: color errors only when colors are available
PR-URL: https://github.com/nodejs/node/pull/47394 Fixes: https://github.com/nodejs/node/issues/47393 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 file changed
+2
-2
@@ -14,10 +14,10 @@ const {
|
||||
const assert = require('assert');
|
||||
const Transform = require('internal/streams/transform');
|
||||
const { inspectWithNoCustomRetry } = require('internal/errors');
|
||||
const { green, blue, red, white, gray } = require('internal/util/colors');
|
||||
const { green, blue, red, white, gray, hasColors } = require('internal/util/colors');
|
||||
const { getCoverageReport } = require('internal/test_runner/utils');
|
||||
|
||||
const inspectOptions = { __proto__: null, colors: true, breakLength: Infinity };
|
||||
const inspectOptions = { __proto__: null, colors: hasColors, breakLength: Infinity };
|
||||
|
||||
const colors = {
|
||||
'__proto__': null,
|
||||
|
||||
Reference in new issue
Block a user