← Files Product DesignARCHIVED FILE
templates/mobile-app/playwright.config.ts
539 Bytes · Oct 5, 2026 · 18:02 UTC
import { defineConfig } from "@playwright/test";
const testPort = Number(process.env.MOBILE_RUNTIME_TEST_PORT ?? 4174);
export default defineConfig({
testDir: "./tests",
testMatch: "**/*.spec.ts",
timeout: 20_000,
use: {
baseURL: `http://127.0.0.1:${testPort}`,
viewport: { width: 1100, height: 1100 },
},
webServer: {
command: `npm run dev -- --port ${testPort}`,
url: `http://127.0.0.1:${testPort}/tests/runtime-fixture.html`,
reuseExistingServer: process.env.MOBILE_RUNTIME_TEST_PORT == null,
},
});
SHA-256: a75849b516724e663b31107209177f5372afd8aa76e6e6375dc24e839d4af3b5