aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/support/e2e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/support/e2e.ts')
-rw-r--r--cypress/support/e2e.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts
index 333bfb96f63..65fb4b2a110 100644
--- a/cypress/support/e2e.ts
+++ b/cypress/support/e2e.ts
@@ -5,6 +5,10 @@
import 'cypress-axe'
import './commands.ts'
+// Remove with Node 22
+// Ensure that we can use `Promise.withResolvers` - works in browser but on Node we need Node 22+
+import 'core-js/actual/promise/with-resolvers.js'
+
// Fix ResizeObserver loop limit exceeded happening in Cypress only
// @see https://github.com/cypress-io/cypress/issues/20341
Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop limit exceeded'))