chore: capture live server state before migration (2026-06-10)
This commit is contained in:
@@ -35,8 +35,8 @@ export default defineConfig({
|
||||
|
||||
// Shared settings for all projects
|
||||
use: {
|
||||
// Base URL - uses dedicated test port to avoid conflicts with other dev servers
|
||||
baseURL: 'http://localhost:3100',
|
||||
// Base URL - test against running Docker container
|
||||
baseURL: process.env.BASE_URL || 'http://localhost:3001',
|
||||
|
||||
// Collect trace when retrying the failed test
|
||||
trace: 'on-first-retry',
|
||||
@@ -71,13 +71,13 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
|
||||
// Configure web server to start before tests on a dedicated port
|
||||
webServer: {
|
||||
command: 'pnpm dev --port 3100',
|
||||
url: 'http://localhost:3100',
|
||||
reuseExistingServer: false,
|
||||
timeout: 120000,
|
||||
},
|
||||
// Use running Docker container - no webServer needed
|
||||
// webServer: {
|
||||
// command: 'pnpm dev --port 3100',
|
||||
// url: 'http://localhost:3100',
|
||||
// reuseExistingServer: false,
|
||||
// timeout: 120000,
|
||||
// },
|
||||
|
||||
// Global timeout for each test
|
||||
timeout: 60000,
|
||||
|
||||
Reference in New Issue
Block a user