Remove global Cypress uncaught-exception handler to keep default fail-fast behavior
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -20,12 +20,6 @@
|
|||||||
|
|
||||||
// Import commands.js using ES2015 syntax:
|
// Import commands.js using ES2015 syntax:
|
||||||
import "./commands";
|
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:
|
// Alternatively you can use CommonJS syntax:
|
||||||
// require('./commands')
|
// require('./commands')
|
||||||
|
|||||||
Reference in New Issue
Block a user