Skip to content

Commit 08dca41

Browse files
committed
Fix randomly failing tests
1 parent 6625583 commit 08dca41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/helpers/normalize.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,10 @@ const REPLACEMENTS = [
5858
[/(line|column): \d+/gu, ''],
5959
// - TAP
6060
[/time=[\d.]+ms/gu, ''],
61+
// Ava fires uncaught exception sometimes before, sometimes after unhandled
62+
// rejection.
63+
[
64+
/1 uncaught exception\n {2}1 unhandled rejection/gu,
65+
'1 unhandled rejection\n 1 uncaught exception',
66+
],
6167
]

0 commit comments

Comments
 (0)