playwright.config.ts 595 B

12345678910111213141516171819202122232425
  1. import { defineConfig, devices } from '@playwright/test'
  2. export default defineConfig({
  3. testDir: './e2e',
  4. fullyParallel: true,
  5. forbidOnly: !!process.env.CI,
  6. retries: process.env.CI ? 2 : 0,
  7. workers: process.env.CI ? 1 : undefined,
  8. reporter: 'html',
  9. use: {
  10. baseURL: 'http://localhost:5173',
  11. trace: 'on-first-retry',
  12. },
  13. projects: [
  14. {
  15. name: 'chromium',
  16. use: { ...devices['Desktop Chrome'] },
  17. },
  18. ],
  19. webServer: {
  20. command: 'npm run dev',
  21. url: 'http://localhost:5173',
  22. reuseExistingServer: !process.env.CI,
  23. },
  24. })