Skip to content

Commit

Permalink
Attempt #3 to fix GTM.js bug breaking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
replete committed Aug 4, 2024
1 parent ae0431b commit 8260eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ beforeAll(async () => {
})

page.on('pageerror', (error) => {
if (error.message && error.message.contains('CookieDeprecationLabel')) return false // GTM bug: https://github.com/replete/biscuitman/issues/4
if (error.toString && error.toString().includes('CookieDeprecationLabel')) return false // GTM bug: https://github.com/replete/biscuitman/issues/4
console.error('Page error:', error)
})

Expand Down

0 comments on commit 8260eb4

Please sign in to comment.