Skip to content

Instantly share code, notes, and snippets.

@dariayermolova
Created January 21, 2020 14:11
Show Gist options
  • Save dariayermolova/716e9ad50cd3dbe49d060905c2db97bf to your computer and use it in GitHub Desktop.
Save dariayermolova/716e9ad50cd3dbe49d060905c2db97bf to your computer and use it in GitHub Desktop.
cypress (mock)
await cy.server();
await cy.route({
method: 'POST',
url: 'users',
response: {name: 'mocked user'}
});
await cy.addUser();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment