Skip to content

currents-dev/example-setup-before

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example: executing async tasks before each spec

Executing an async task for each Cypress spec file

before method of cypress/support/e2e.js is automatically included in each spec file. The method invokes an async cy.task that runs in NodeJS, and can be used to spin up a testing environment, or execute any other setup task e.g. seeding a DB.

Take a look at cypress.config.js that defines the setup task within setupNodeEvents function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published