Skip to content

Commit

Permalink
Fix ignore that now looks like error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jun 10, 2024
1 parent ae2ae01 commit 82df5d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/internal-test-utils/shouldIgnoreConsoleError.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module.exports = function shouldIgnoreConsoleError(format, args) {
args[0] != null &&
((typeof args[0] === 'object' &&
typeof args[0].message === 'string' &&
// This specific log has the same signature as error logging.
// The trick is to get rid of this whole file.
!format.includes('Failed to serialize an action') &&
typeof args[0].stack === 'string') ||
(typeof args[0] === 'string' &&
args[0].indexOf('An error occurred in ') === 0))
Expand Down

0 comments on commit 82df5d0

Please sign in to comment.