Files
Native-Router-Vue/playwright.config.ts
2026-07-22 02:12:05 +00:00

17 lines
545 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./apps/demo/e2e",
use: { baseURL: "http://127.0.0.1:4173", trace: "retain-on-failure" },
projects: [
{ name: "mobile-chromium", use: { ...devices["Pixel 7"] } },
{ name: "mobile-webkit", use: { ...devices["iPhone 15"] } },
{ name: "desktop", use: { ...devices["Desktop Chrome"] } },
],
webServer: {
command: "npm run build && npm run preview -- --host 127.0.0.1",
port: 4173,
reuseExistingServer: true,
},
});