Created
September 4, 2020 13:17
-
-
Save kianaditya/99a8e64361ad06ac6020ae51beba0687 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Cypress.Commands.add('customRoute', (args, alias = 'mock') => { | |
cy.server() | |
if (Cypress.env('mock')) { | |
cy.route(args).as(alias) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment