Cypress · Middle · Question 57 of 77
If two intercepts match the same request, which handler runs first?
- 1The most recently defined one
- 2The first one defined in the spec
- 3Both run at the same time
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.