Created
January 21, 2020 14:11
-
-
Save dariayermolova/716e9ad50cd3dbe49d060905c2db97bf to your computer and use it in GitHub Desktop.
cypress (mock)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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