Skip to content

Commit c758fb8

Browse files
committed
Fix ignore that now looks like error logging
1 parent 6015978 commit c758fb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/internal-test-utils/shouldIgnoreConsoleError.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ module.exports = function shouldIgnoreConsoleError(format, args) {
77
args[0] != null &&
88
((typeof args[0] === 'object' &&
99
typeof args[0].message === 'string' &&
10+
// This specific log has the same signature as error logging.
11+
// The trick is to get rid of this whole file.
12+
!format.includes('Failed to serialize an action') &&
1013
typeof args[0].stack === 'string') ||
1114
(typeof args[0] === 'string' &&
1215
args[0].indexOf('An error occurred in ') === 0))

0 commit comments

Comments
 (0)