15 lines
413 B
JavaScript
15 lines
413 B
JavaScript
import { defineConfig } from "@playwright/test";
|
|
|
|
// npm run test:e2e (needs `npx playwright install chromium` once).
|
|
export default defineConfig({
|
|
testDir: "./tests/e2e",
|
|
timeout: 30_000,
|
|
use: { baseURL: "http://localhost:4321" },
|
|
webServer: {
|
|
command: "npm run build && npm run preview -- --port 4321",
|
|
url: "http://localhost:4321",
|
|
reuseExistingServer: true,
|
|
timeout: 120_000,
|
|
},
|
|
});
|