how to run cypress tests code example

Example 1: cypress run specific test

cypress run --spec 'path/to/files/*.spec.js'

Example 2: run cypress

./node_modules/.bin/cypress open

Example 3: how to run cypress test

./node_modules/.bin/cypress run   // just cypress run wont work

Example 4: hot to start cypress

npm install cypress                //takes about 3-5 minutes for entire process
./node_modules/.bin/cypress open   // just cypress run wont work

Example 5: tests offline cypress

Cypress.automation('remote:debugger:protocol',
  {
    command: 'Network.enable',
  }
)