diff --git a/test/cy/package.json b/test/cy/package.json index 9666d6b3e..08ebcbd4c 100644 --- a/test/cy/package.json +++ b/test/cy/package.json @@ -8,7 +8,7 @@ "test-deploy": "start-server-and-test --expect 401 start http-get://127.0.0.1:9000 run-deploy", "open": "cypress open", "run": "cypress run --spec ./cypress/e2e/publish-ui/*.cy.js --env token=token", - "run-deploy": "cross-env cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS" + "run-deploy": "if [ \"$npm_execpath\" != \"C:\\\\Program Files\\\\nodejs\\\\npm-cli.js\" ]; then cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS; else cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=%CYPRESS_CONNECT_ADDRESS%; fi;" }, "devDependencies": { "cross-env": "^7.0.3",