chore: 更新工具链与项目配置

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhongyidianandClaude Opus 4.8 committed 2026-08-18 13:39:30 +08:00
1 parent ae021f06d1
commit 77742d5b02
11 files changed
+393 -196

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
import { defineConfig, devices } from "@playwright/test";
const PORT = 4173;
const BASE_URL = `http://127.0.0.1:${PORT}`;
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
reporter: [["list"]],
use: {
baseURL: BASE_URL,
trace: "retain-on-failure",
},
projects: [
{
name: "chromium-desktop",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1280, height: 720 },
},
},
{
name: "chromium-full",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1080 },
},
},
],
webServer: {
command: "bun run build && bun run preview -- --host 127.0.0.1 --port 4173",
url: BASE_URL,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});