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

Diff for: pnpm-lock.yaml

+5-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: template/config/cypress/package.json

+3-3
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)