新增 e2e/global-setup.ts:用 pg 直连真实 PG(凭据从 infra.env 环境变量读,不入库)幂等复位 graph/confirm-draft/accept(block3→rev1)/security-ack(事件→未确认+清 ack)/appeal(→supplementing)等每轮被消费的 fixture;playwright.config 接 globalSetup + workers:1(共享活体 DB 串行避竞态)。 证:消费态下 source infra.env 后 pnpm 直跑整套→globalSetup 复位→20/20 单次全绿,零手工种子(反假绿可复现)。E2E_SKIP_SEED=1 可跳过;缺 MUSE_POSTGRES_* 报清晰错。tsc -b 干净。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"name": "muse-studio",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"test": "vitest run",
|
|
"test:unit": "vitest run",
|
|
"coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^3.0.0",
|
|
"@tanstack/react-query": "^5.100.13",
|
|
"@tiptap/extension-placeholder": "^3.23.6",
|
|
"@tiptap/pm": "^3.23.6",
|
|
"@tiptap/react": "^3.23.6",
|
|
"@tiptap/starter-kit": "^3.23.6",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0",
|
|
"react-hook-form": "^7.76.1",
|
|
"react-router-dom": "^6.30.3",
|
|
"zod": "^3.0.0",
|
|
"zustand": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.60.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/node": "^24.12.3",
|
|
"@types/pg": "^8.20.0",
|
|
"@types/react": "^18.3.29",
|
|
"@types/react-dom": "^18.3.7",
|
|
"@typescript-eslint/parser": "^8.59.4",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"@vitest/coverage-v8": "2.0.0",
|
|
"autoprefixer": "^10.5.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.6.0",
|
|
"jsdom": "^29.1.1",
|
|
"msw": "^2.14.6",
|
|
"pg": "^8.21.0",
|
|
"playwright": "^1.60.0",
|
|
"postcss": "^8.5.15",
|
|
"prettier": "^3.8.3",
|
|
"start-server-and-test": "^3.0.5",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "~6.0.2",
|
|
"typescript-eslint": "^8.59.2",
|
|
"undici": "^8.3.0",
|
|
"vite": "^8.0.12",
|
|
"vitest": "^2.0.0"
|
|
},
|
|
"msw": {
|
|
"workerDirectory": [
|
|
"public"
|
|
]
|
|
}
|
|
}
|