test: 起 Playwright(electron) E2E 骨架 + 金标准往返测试(建→写→存→重开字节一致)

This commit is contained in:
hunter-dev
2026-08-24 22:35:09 +08:00
parent 016048b029
commit 403a28cb2f
6 changed files with 176 additions and 1 deletions
+4 -1
View File
@@ -7,7 +7,8 @@
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
"typecheck": "tsc -b"
"typecheck": "tsc -b",
"test:e2e": "electron-vite build && playwright test"
},
"dependencies": {
"@hunter/shared": "workspace:*",
@@ -39,11 +40,13 @@
"zustand": "^5.0.15"
},
"devDependencies": {
"@playwright/test": "^1.62.1",
"@types/node": "^20.0.0",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"electron": "^30.0.0",
"electron-vite": "^2.3.0",
"playwright": "^1.62.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.6.0",