Skip to content

Commit 7b0190b

Browse files
committed
fix: use full preview address in test scripts
Somehow in some GitHub Actions, `start-server-and-test` stuck on localhost but works fine with 127.0.0.1
1 parent 14a0ea4 commit 7b0190b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/config/cypress/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"scripts": {
33
"test:unit": "cypress open-ct",
44
"test:unit:ci": "cypress run-ct --quiet --reporter spec",
5-
"test:e2e": "start-server-and-test preview 5050 'cypress open'",
6-
"test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
5+
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
6+
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
77
},
88
"devDependencies": {
99
"@cypress/vite-dev-server": "^2.2.0",

0 commit comments

Comments
 (0)