Skip to content

Commit dd20ac5

Browse files
committed
fix(cypress): update start-server-and-test to 2.0 and use full host url
A breaking change was introduced in start-server-and-test 1.5.5 and now :4173 is not equivalent to localhost:4173, which Vite uses by default, so we have to use the full url in the command. bahmutov/start-server-and-test#357 (comment)
1 parent b47c7be commit dd20ac5

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

pnpm-lock.yaml

Lines changed: 5 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/config/cypress/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"scripts": {
3-
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
4-
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'"
3+
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
4+
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
55
},
66
"devDependencies": {
77
"cypress": "^12.6.0",
8-
"start-server-and-test": "^1.15.4"
8+
"start-server-and-test": "^2.0.0"
99
}
1010
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy