Cypress intercepts the real network call and replaces the response.
The request will get a mocked 200 OK response with your custom JSON data.
as('mockedUsers') allows you to wait or assert on it later.
We can stub using fixtures as well.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience