Files

36 lines
783 B
TypeScript
Raw Permalink Normal View History

import { defineConfig, devices } from "@playwright/test"
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
2026-05-20 14:26:08 +09:00
workers: process.env.CI ? 2 : undefined,
reporter: process.env.CI ? [["github"], ["list"]] : "list",
use: {
baseURL: "http://127.0.0.1:3000",
trace: "on-first-retry",
headless: true,
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
headless: true,
},
},
],
webServer: {
2026-05-20 14:26:08 +09:00
command: "bun run build && bun --bun next start",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
timeout: 180000,
},
})