cy.server() // enable response stubbing cy.route({ method: 'GET', // Route all GET requests url: '/users/*', // that have a URL that matches '/users/*' response: [] // and force the response to be: [] })