Home > OS >  Cypress: when do we need to add syntax cypress:open?
Cypress: when do we need to add syntax cypress:open?

Time:03-16

when using cypress-testingWeb, where we need to add syntax"cypress:open" : "cypress open" at code file

CodePudding user response:

Open the package.json file in the root of your project and update the scripts property to the following:

ex:

 "scripts": {
    "cypress:open": "cypress open"
  },

Then in your terminal, you can try to open Cypress Test runner npm run cypress:open

CodePudding user response:

syntax cypress:open : "cypress open" written in package.json in "script". the addition of this syntax aims to make cypress open when writing cypress:open in the terminal.enter image description here

  • Related