We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e604e4 commit 3c75978Copy full SHA for 3c75978
packages/react-virtual/playwright.config.ts
@@ -1,15 +1,16 @@
1
import { defineConfig } from '@playwright/test'
2
3
const PORT = 5173
4
+const baseURL = `http://localhost:${PORT}`
5
6
export default defineConfig({
7
testDir: './e2e/app/test',
8
use: {
- baseURL: `http://localhost:${PORT}`,
9
+ baseURL,
10
},
11
webServer: {
- command: 'vite --config e2e/app/vite.config.ts',
12
- port: PORT,
+ 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,
14
reuseExistingServer: !process.env.CI,
15
stdout: 'pipe',
16
0 commit comments