cypress 1


npm install cypress or npm install cypress --save-dev // Make sure that you have already run npm init

./node_modules/.bin/cypress open  //to open cypress window, will take 30 secs

Here is what the above code is Doing:
1. npm init -y creates a package.json file with default values.
2. npm install cypress installs Cypress locally as a dev dependency for your project.
3. ./node_modules/.bin/cypress open opens the Cypress Test Runner.

Similar Posts