DEV Community

Discussion on: How to intercept and mock the response of an HTTP request with Cypress

Collapse
 
rebaiahmed profile image
Ahmed Rebai

Why you choosed to include the interception inside beforeEach hook and not inside the test defintion?

Collapse
 
walmyrlimaesilv profile image
Walmyr

So the alias could be reused across all tests, if there was more than one.