Skip to content

Commit 02e1410

Browse files
committed
Replace the cypress run old command
1 parent 21a4405 commit 02e1410

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"// CYPRESS ///////////": "",
3131
"cy:open": "cypress open",
3232
"cy:run": "cypress run",
33-
"cy-run-record": "node utils/cypress-run-and-record.js",
33+
"cy-run-record": "node utils/cy-run-record.js",
3434
"// REALWORLD ///////////": "",
3535
"realworld:install": "npm run realworld:frontend:install && npm run realworld:backend:install",
3636
"realworld:frontend:install": "cd realworld/frontend && npm i",
@@ -39,14 +39,14 @@
3939
"realworld:frontend:start": "cd realworld/frontend && npm start",
4040
"realworld:backend:start": "cd realworld/backend && npm start",
4141
"realworld:db:start": "cd realworld/backend && npm run mongo:start",
42-
"realworld:cy": "cypress run --spec \"cypress/integration/realworld/**/*\"",
42+
"realworld:cy": "npm run cy-run-record -- --spec \"cypress/integration/realworld/**/*\"",
4343
"// EXAMPLES ///////////": "",
4444
"run:examples": "npm-run-all -s example:**",
45-
"example:headless-browser": "cypress run --spec \"cypress/integration/**/headless-browser.*\"",
46-
"example:signup": "cypress run --spec \"cypress/integration/examples/signup/*\"",
47-
"example:signup-integration": "cypress run --spec \"cypress/integration/examples/signup-integration/*\"",
48-
"example:authenticate-command": "cypress run --spec \"cypress/integration/examples/authenticate-command/*\"",
49-
"example:monitoring-tests": "cypress run --spec \"cypress/integration/examples/monitoring-tests/*\""
45+
"example:headless-browser": "npm run cy-run-record -- --spec \"cypress/integration/**/headless-browser.*\"",
46+
"example:signup": "npm run cy-run-record -- --spec \"cypress/integration/examples/signup/*\"",
47+
"example:signup-integration": "npm run cy-run-record -- --spec \"cypress/integration/examples/signup-integration/*\"",
48+
"example:authenticate-command": "npm run cy-run-record -- --spec \"cypress/integration/examples/authenticate-command/*\"",
49+
"example:monitoring-tests": "npm run cy-run-record -- --spec \"cypress/integration/examples/monitoring-tests/*\""
5050
},
5151
"jest": {
5252
"testPathIgnorePatterns": [

0 commit comments

Comments
 (0)