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/, }, ], reporter: 'list', webServer: { command: 'npm run dev', port: 5173, reuseExistingServer: true, }, workers: 1, use: { baseURL: 'http://localhost:5173', trace: 'on-first-retry', }, });