iter 2
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Central configuration for all E2E test ports and URLs.
|
||||
* Change values here instead of hardcoding in fixtures / config.
|
||||
*/
|
||||
|
||||
/** Real backend API */
|
||||
export const API_PORT = 8000
|
||||
export const API_URL = `http://localhost:${API_PORT}`
|
||||
|
||||
/** Lightweight mock API server (used by unit/component Playwright tests) */
|
||||
export const MOCK_API_PORT = 4444
|
||||
export const MOCK_API_URL = `http://localhost:${MOCK_API_PORT}`
|
||||
|
||||
/** Frontend dev server for unit/component tests (uses mock API) */
|
||||
export const FRONTEND_MOCK_PORT = 3005
|
||||
export const FRONTEND_MOCK_URL = `http://localhost:${FRONTEND_MOCK_PORT}`
|
||||
|
||||
/** Frontend dev server for integration tests (uses real backend) */
|
||||
export const FRONTEND_INTEGRATION_PORT = 3000
|
||||
export const FRONTEND_INTEGRATION_URL = `http://localhost:${FRONTEND_INTEGRATION_PORT}`
|
||||
Reference in New Issue
Block a user