Cypress · Junior · Question 69 of 75

What does Cypress do with an uncaught exception from the app?

Show the answer

Correct answer: Fails the test by default

Explanation

App errors usually mean bugs. You can handle known ones with Cypress.on('uncaught:exception'), but do it narrowly.

Further reading

Problem with a question

Cypress · Junior · question 69

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz