state/playwright.config.js

16 lines
373 B
JavaScript
Raw Permalink Normal View History

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './test',
testMatch: '**/*.spec.js',
use: {
baseURL: 'http://127.0.0.1:8081',
},
webServer: {
command: 'npx vite --port 8081 --host 127.0.0.1',
2026-06-05 19:03:52 +08:00
url: 'http://127.0.0.1:8081/test/index.html',
timeout: 180000,
reuseExistingServer: !process.env.CI,
},
});