Cypress · Senior · Question 60 of 76
What does Cypress.on('uncaught:exception') returning false do, and why use it carefully?
- 1Ignores app errors; overusing it hides real bugs
- 2Retries the test automatically after errors
- 3Logs errors to the terminal only
Show the answer
Correct answer: Ignores app errors; overusing it hides real bugs
Explanation
Ignore only specific known third-party errors by message, never all exceptions.