| 5 | export const APP_ORIGIN = `http://127.0.0.1:${PORT}`; |
| 6 | export const CANARY = 'http://127.0.0.1:9999'; |
| 7 |
| 8 | export default defineConfig({ |
| 9 | testDir: 'tests', |
| 10 | globalSetup: './tests/global-setup.ts', |
| 11 | testMatch: /.*\.spec\.ts/, |
| 12 | timeout: 90_000, |
| 13 | fullyParallel: false, |
| 14 | workers: 1, |
| 15 | retries: 0, |
| 16 | reporter: [['list'], ['html', { open: 'never' }]], |
| 17 | use: { |
| 18 | baseURL: APP_ORIGIN, |
| 19 | viewport: { width: 1280, height: 900 }, |
| 20 | trace: 'retain-on-failure', |
| 21 | }, |
| 22 | webServer: [ |
| 23 | { command: `corepack pnpm dev --port ${PORT}`, url: APP_ORIGIN + '/api/corpus', reuseExistingServer: true, timeout: 60_000 }, |
| 24 | { command: 'corepack pnpm canary', url: CANARY + '/__hits', reuseExistingServer: true, timeout: 30_000 }, |
| 25 | ], |
| 26 | projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }], |
| 27 | }); |
| 28 |