| 5 | // Each project's globalsetup boots that app's OWN dev server (or attaches to |
| 6 | // E2E_<TARGET>_URL). Scenarios are isolated by fresh identities, not resets. |
| 7 | const project = (name: string, overrides: Record<string, unknown> = {}) => ({ |
| 8 | test: { |
| 9 | name, |
| 10 | include: ["scenarios/**/*.test.ts", `${name}/**/*.test.ts`], |
| 11 | env: { E2E_TARGET: name }, |
| 12 | globalSetup: [`./setup/${name}.globalsetup.ts`], |
| 13 | testTimeout: 180_000, |
| 14 | hookTimeout: 120_000, |
| 15 | ...overrides, |
| 16 | }, |
| 17 | }); |
| 18 | |
| 19 | export default defineConfig({ |
| 20 | test: { |