mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-28 17:25:54 +08:00
ff343185c9
- 安装 @playwright/test 1.60.0 - 创建 e2e/playwright.config.ts(webServer 自动启动 vite dev) - 创建 e2e/mocks/ipc.ts(Tauri IPC mock) - 新增 npm run test:e2e 脚本 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
15 lines
289 B
TypeScript
15 lines
289 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests',
|
|
timeout: 10000,
|
|
use: {
|
|
baseURL: 'http://localhost:5173',
|
|
},
|
|
webServer: {
|
|
command: 'npm run dev',
|
|
url: 'http://localhost:5173',
|
|
reuseExistingServer: true,
|
|
},
|
|
});
|