]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: wait on localhost:4173 instead of 127.0.0.1
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 18 Jul 2022 07:41:27 +0000 (15:41 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 18 Jul 2022 07:41:27 +0000 (15:41 +0800)
As Vite 3 has changed the default host to `localhost`

template/config/cypress/package.json

index 58cfb9655d9efb9d169edec24d6bd3221e70e074..1b984b203f098aa9ea5220548b8cceac73fc159d 100644 (file)
@@ -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",