import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: 'tests', projects: [ { name: 'setup', testMatch: /setup\.ts/, use: { ...devices['Desktop Chrome'] }, }, // Make all other tests depend on the signup, // since they need user accounts to run { name: 'test', use: { ...devices['Desktop Chrome'] }, dependencies: ['setup'], testMatch: /(.+\.)?(test|spec)\.[jt]s/, }, ], retries: !process.env.CI ? 1 : 0, reporter: 'list', webServer: { command: 'npm run dev --host', port: 5173, // Reuses webserver only in non-ci enviroments reuseExistingServer: !process.env.CI, }, workers: 1, use: { baseURL: 'http://127.0.0.1:5173', trace: 'on-first-retry', }, });