Skip to content

Commit a2e2c91

Browse files
refackBridgeAR
authored andcommitted
test: disable color formating for test-internal-errors.js
PR-URL: #24204 Fixes: #24193 Refs: #19723 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 75ed7ce commit a2e2c91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-internal-errors.js

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const { internalBinding } = require('internal/test/binding');
1010
const assert = require('assert');
1111
const errors = require('internal/errors');
1212

13+
// Turn off ANSI color formatting for this test file.
14+
const { inspect } = require('util');
15+
inspect.defaultOptions.colors = false;
16+
1317
errors.E('TEST_ERROR_1', 'Error for testing purposes: %s',
1418
Error, TypeError, RangeError);
1519
errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);

0 commit comments

Comments
 (0)