stubbing in cypress

Solutions on MaxInterview for stubbing in cypress by the best coders in the world

showing results for - "stubbing in cypress"
Michele
14 Jun 2017
1cy.server()           // enable response stubbing
2cy.route({
3  method: 'GET',      // Route all GET requests
4  url: '/users/*',    // that have a URL that matches '/users/*'
5  response: []        // and force the response to be: []
6})
7