Skip to content
Discussion options

You must be logged in to vote

Cypress spec file runs in the browser, thus it cannot directly execute (in most cases) code that is meant to run in Node. To run in Node you should use the plugin file that runs in a separate process which can communicate with the spec via cy.task command. See a typical example in the blog post https://glebbahmutov.com/blog/verify-phone-part-two/

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@pachkovska
Comment options

Answer selected by pachkovska
Comment options

You must be logged in to vote
2 replies
@valk990
Comment options

@pachkovska
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants