diff --git a/test/parallel/test-internal-errors.js b/test/parallel/test-internal-errors.js index de5d6ed3b9bb8e..5d28dc411e6069 100644 --- a/test/parallel/test-internal-errors.js +++ b/test/parallel/test-internal-errors.js @@ -8,6 +8,10 @@ const { const assert = require('assert'); const errors = require('internal/errors'); +// Turn off ANSI color formatting for this test file. +const { inspect } = require('util'); +inspect.defaultOptions.colors = false; + errors.E('TEST_ERROR_1', 'Error for testing purposes: %s', Error, TypeError, RangeError); errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);