From 8260eb432d0409f499973f67b191197cfd9f7d86 Mon Sep 17 00:00:00 2001 From: Phil Ricketts <812139+replete@users.noreply.github.com> Date: Mon, 5 Aug 2024 00:37:34 +0100 Subject: [PATCH] Attempt #3 to fix GTM.js bug breaking CI --- jest.setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.setup.js b/jest.setup.js index 15811cb..2ea0b53 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -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) })