Remove global Cypress uncaught-exception handler to keep default fail-fast behavior

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 18:46:09 +08:00
parent 7d368bf0c3
commit f567e86898

View File

@@ -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')