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 e7a1146 commit c0b5252Copy full SHA for c0b5252
test/helpers/normalize.js
@@ -43,15 +43,19 @@ const REPLACEMENTS = [
43
[/(([ \t]+)at STACK TRACE(\r?\n)?)+/gu, '$2at STACK TRACE$3'],
44
// Default Node.js warnings show PID, which we remove
45
[/\(node:\d+\)/gu, '(node:PID)'],
46
+ // Default Node.js warnings <10 look different (no `code`, no `detail`)
47
+ // TODO: remove when Node.js <10 is not supported anymore
48
+ [/(\(node:PID\)) \[[^\]]+\](.*)\n.*/gu, '$1$2'],
49
// File paths
50
[/[^ (]+\/[^ )]+/gu, ''],
51
// Durations in test runners:
52
// - Mocha, node-tap `classic` reporter
53
[/ \([\d.]+m?s\)/gu, ''],
54
// - Jasmine
55
[/[\d.]+ seconds?/gu, ''],
- // - Jasmine, Node <12.5.0 only
56
+ // - Jasmine, Node 10 only (not Node 8 nor 12)
57
[/\n\nSuite error: undefined/gu, ''],
58
+ // - Jasmine, Node <12.5.0 only
59
[
60
/ +Message:\n +Uncaught exception: RejectionHandled: a promise was rejected and handled too late: Error: message\n +Stack:\n +at STACK TRACE\n/gu,
61
'',
0 commit comments