We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 885e35d commit 9814bd9Copy full SHA for 9814bd9
1 file changed
test/parallel/test-internal-errors.js
@@ -8,6 +8,10 @@ const {
8
const assert = require('assert');
9
const errors = require('internal/errors');
10
11
+// Turn off ANSI color formatting for this test file.
12
+const { inspect } = require('util');
13
+inspect.defaultOptions.colors = false;
14
+
15
errors.E('TEST_ERROR_1', 'Error for testing purposes: %s',
16
Error, TypeError, RangeError);
17
errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);
0 commit comments