From: Haoqun Jiang Date: Mon, 18 Jul 2022 07:41:27 +0000 (+0800) Subject: fix: wait on localhost:4173 instead of 127.0.0.1 X-Git-Tag: v3.3.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ca0fade8c92a9b287f4da5d698cdc945c95fe6;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: wait on localhost:4173 instead of 127.0.0.1 As Vite 3 has changed the default host to `localhost` --- diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 58cfb965..1b984b20 100644 --- a/template/config/cypress/package.json +++ b/template/config/cypress/package.json @@ -1,7 +1,7 @@ { "scripts": { - "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open --e2e'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'" + "test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'", + "test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'" }, "devDependencies": { "cypress": "^10.3.0",