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

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