Cypress · Middle · Question 57 of 77

If two intercepts match the same request, which handler runs first?

Show the answer

Correct answer: The most recently defined one

Explanation

Newer intercepts take precedence, which lets a test override a general stub from beforeEach with a specific one.

Further reading

Problem with a question

Cypress · Middle · question 57

Test yourself

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

Take this quiz