File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/e2e-tests/test-applications/sveltekit Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
22
"tslib" : " ^2.4.1" ,
23
23
"typescript" : " ^5.0.0" ,
24
24
"vite" : " ^4.2.0" ,
25
+ "wait-port" : " 1.0.4" ,
25
26
"ts-node" : " 10.9.1" ,
26
27
"@playwright/test" : " ^1.27.1"
27
28
},
Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ const config: PlaywrightTestConfig = {
55
55
/* Run your local dev server before starting the tests */
56
56
webServer : [
57
57
{
58
- command : 'yarn ts-node --esm start-event-proxy.ts' ,
58
+ command : 'pnpm ts-node --esm start-event-proxy.ts' ,
59
59
port : Number ( process . env . BASE_PORT ) + Number ( process . env . PORT_MODULO ) + Number ( process . env . PORT_GAP ) ,
60
60
} ,
61
61
{
62
- command : testEnv === 'development' ? `yarn dev --port ${ port } ` : `yarn preview --port ${ port } ` ,
62
+ command :
63
+ testEnv === 'development'
64
+ ? `pnpm wait-port ${ port } && pnpm dev --port ${ port } `
65
+ : `pnpm wait-port ${ port } && pnpm preview --port ${ port } ` ,
63
66
port,
64
67
} ,
65
68
] ,
You can’t perform that action at this time.
0 commit comments