Skip to content

Commit 43097d9

Browse files
refackMylesBorins
authored andcommitted
test: disable color formating for test-internal-errors.js
PR-URL: #24204 Fixes: #24193 Refs: #19723 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent bcfb824 commit 43097d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-internal-errors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const {
88
const assert = require('assert');
99
const errors = require('internal/errors');
1010

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

0 commit comments

Comments
 (0)