Skip to content

Commit 6ace7ec

Browse files
committed
test: disable color formating for test-internal-errors.js
1 parent 5e6193f commit 6ace7ec

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
@@ -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)