import { defineConfig } from '@playwright/test';

export default defineConfig({
  testDir: './test',
  testMatch: '**/*.spec.js',
  use: {
    baseURL: 'http://127.0.0.1:8083',
  },
  webServer: {
    command: 'npx vite --port 8083 --host 127.0.0.1',
    url: 'http://127.0.0.1:8083/test/index.html',
    reuseExistingServer: !process.env.CI,
    stdout: 'pipe',
    stderr: 'pipe',
  },
});
