playwright.config.ts 660 B

123456789101112131415161718
  1. import { defineConfig } from "@playwright/test"
  2. export default defineConfig({
  3. testDir: ".",
  4. outputDir: "../test-results/paas",
  5. testMatch: "*.spec.ts",
  6. workers: 1,
  7. retries: 0,
  8. reporter: "line",
  9. use: { channel: "chrome", baseURL: "http://127.0.0.1:43128", video: "off", screenshot: "only-on-failure" },
  10. webServer: {
  11. command:
  12. "bun x --no-install vite build --config e2e/paas/vite.config.ts && bun x --no-install vite preview --config e2e/paas/vite.config.ts --host 127.0.0.1 --port 43128 --strictPort",
  13. cwd: "../..",
  14. url: "http://127.0.0.1:43128/e2e/paas/index.html",
  15. reuseExistingServer: false,
  16. timeout: 120000,
  17. },
  18. })