19 lines
478 B
TypeScript
19 lines
478 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "tests/e2e",
|
|
timeout: 30000,
|
|
use: {
|
|
baseURL: "http://127.0.0.1:4173",
|
|
trace: "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
|
],
|
|
webServer: {
|
|
command: "npm run build && npx vite preview --host 127.0.0.1 --port 4173",
|
|
url: "http://127.0.0.1:4173",
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
});
|