From f567e86898929a910013c42bdf3bdf48c86c2602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 8 Mar 2026 18:46:09 +0800 Subject: [PATCH] Remove global Cypress uncaught-exception handler to keep default fail-fast behavior Co-Authored-By: Codex --- cypress/support/e2e.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index a093b7d..f95acfd 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -20,12 +20,6 @@ // Import commands.js using ES2015 syntax: import "./commands"; -import { getCypressUncaughtExceptionDecision } from "./uncaughtExceptionPolicy"; - -Cypress.on("uncaught:exception", (error) => { - // Ignore only known benign browser/runtime noise; fail all other app errors. - return getCypressUncaughtExceptionDecision(error); -}); // Alternatively you can use CommonJS syntax: // require('./commands')