Cypress · Middle · Question 56 of 77
What does cy.intercept route matching use by default for URLs?
- 1Glob patterns or exact strings, plus regex if you pass one
- 2SQL-like
LIKEpatterns on the path - 3Only exact full URLs including the query string
Show the answer
Correct answer: Glob patterns or exact strings, plus regex if you pass one
Explanation
For example '/api/users/*' or { method: 'POST', url: /\/api\/orders/ }. Narrow matching avoids catching unrelated requests.