From d396e15bcae1c2f03a5cfca4bfc7b763ff82c081 Mon Sep 17 00:00:00 2001 From: Stefano Magni Date: Thu, 8 Jun 2023 11:03:25 +0200 Subject: [PATCH] chore(deps): Remove the manual npm run --- cypress-run.js | 11 ----------- cypress/e2e/plugin.spec.js | 2 +- package.json | 3 +-- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 cypress-run.js diff --git a/cypress-run.js b/cypress-run.js deleted file mode 100644 index ae726f7..0000000 --- a/cypress-run.js +++ /dev/null @@ -1,11 +0,0 @@ -const npm = require('npm') - -npm.load(() => { - const uploadRecordings = process.env.npm_package_config_cypressUploadRecordings === 'true'; - const key = process.env.CYPRESS_RECORD_KEY; - if (uploadRecordings && !key) { - throw "Missing Cypress record key"; - } - const options = uploadRecordings && key ? ['--record', '--key', key] : []; - npm.commands['run-script'](['cy:run', ...options]); -}) diff --git a/cypress/e2e/plugin.spec.js b/cypress/e2e/plugin.spec.js index ff8cff8..5d0d27b 100644 --- a/cypress/e2e/plugin.spec.js +++ b/cypress/e2e/plugin.spec.js @@ -2,7 +2,7 @@ context('Cypress Wait Until', () => { beforeEach(() => { - cy.visit('http://localhost:5000/') + cy.visit('http://localhost:3000/') }) it('Should work with an immediately-satisfied condition', () => { diff --git a/package.json b/package.json index 20c5614..02a6531 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,7 @@ "serve": "serve public", "cy:open": "cypress open", "test": "npm run typescript && npm run cy:start-server-and-test", - "cy:start-server-and-test": "start-server-and-test serve :5000 cy:run-uploading-videos", - "cy:run-uploading-videos": "node cypress-run.js", + "cy:start-server-and-test": "start-server-and-test serve :3000 cy:run", "cy:run": "cypress run", "typescript": "tsc --project ./tsconfig.json", "semantic-release": "semantic-release"