From a6c49543d59d18945083711f7b4ce84e9e049381 Mon Sep 17 00:00:00 2001 From: Twaha Rahman <39026437+Twaha-Rahman@users.noreply.github.com> Date: Fri, 20 Nov 2020 16:39:34 +0600 Subject: [PATCH] refactor: Cypress CLI args to config file (#40268) --- cypress.json | 3 ++- package.json | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cypress.json b/cypress.json index 68434829e7..c8fbb01f19 100644 --- a/cypress.json +++ b/cypress.json @@ -1,3 +1,4 @@ { - "projectId": "ke77ns" + "projectId": "ke77ns", + "baseUrl": "http://localhost:8000" } diff --git a/package.json b/package.json index 24e0250b50..d9ad0122af 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,10 @@ "precypress": "node ./cypress-install.js", "cypress": "cypress", "cypress:install": "cypress install && echo 'for use with ./cypress-install.js'", - "cypress:dev:run": "npm run cypress -- run --config baseUrl=http://localhost:8000", - "cypress:dev:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000", - "cypress:prd:run": "npm run cypress -- run --config baseUrl=http://localhost:8000", - "cypress:prd:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000", + "cypress:dev:run": "npm run cypress -- run", + "cypress:dev:watch": "npm run cypress -- open", + "cypress:prd:run": "npm run cypress -- run", + "cypress:prd:watch": "npm run cypress -- open", "develop": "npm-run-all ensure-env -p develop:*", "develop:client": "cd ./client && npm run develop", "develop:server": "cd ./api-server && npm run develop",