Skip to content

Commit 3c75978

Browse files
committed
WIP
1 parent 7e604e4 commit 3c75978

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/react-virtual/playwright.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { defineConfig } from '@playwright/test'
22

33
const PORT = 5173
4+
const baseURL = `http://localhost:${PORT}`
45

56
export default defineConfig({
67
testDir: './e2e/app/test',
78
use: {
8-
baseURL: `http://localhost:${PORT}`,
9+
baseURL,
910
},
1011
webServer: {
11-
command: 'vite --config e2e/app/vite.config.ts',
12-
port: PORT,
12+
command: `VITE_SERVER_PORT=${PORT} vite build --config e2e/app/vite.config.ts && VITE_SERVER_PORT=${PORT} vite preview --config e2e/app/vite.config.ts --port ${PORT}`,
13+
url: baseURL,
1314
reuseExistingServer: !process.env.CI,
1415
stdout: 'pipe',
1516
},

0 commit comments

Comments
 (0)