Files
novalon-website/package.json
T
张翔 d14513ff34 refactor: 删除旧的E2E测试文件
删除文件:
- e2e/admin-frontend-interaction.spec.ts
- e2e/admin-publish-core.spec.ts
- e2e/admin-publish.spec.ts
- e2e/website-acceptance.spec.ts

原因:
- 已被新的测试架构替代
- 新架构采用Page Object Model模式
- 新架构有更清晰的测试分类(smoke/journeys/features)
- 新架构提供更好的可维护性和可扩展性

新测试架构:
- smoke/ - 冒烟测试
- journeys/ - 用户旅程测试
- features/ - 功能测试
- pages/ - Page Object Model
- fixtures/ - 测试固件
2026-04-09 13:34:44 +08:00

124 lines
4.2 KiB
JSON

{
"name": "ruixin-website-react",
"version": "1.0.0-phase1",
"private": true,
"scripts": {
"dev": "next dev -p 3000",
"build": "next build",
"start": "next start -p 3000",
"lint": "eslint",
"type-check": "tsc --noEmit",
"test": "playwright test",
"test:unit": "jest",
"test:coverage": "jest --coverage",
"test:coverage:check": "jest --coverage --ci",
"coverage:report": "open coverage/lcov-report/index.html",
"test:e2e": "playwright test",
"test:fast": "TEST_TIER=fast playwright test",
"test:standard": "TEST_TIER=standard playwright test",
"test:deep": "TEST_TIER=deep playwright test",
"test:smoke": "playwright test --grep @smoke",
"test:journey": "playwright test --grep @journey",
"test:feature": "playwright test --grep @feature",
"test:admin": "playwright test --grep @admin",
"test:frontend": "playwright test --grep @frontend",
"test:ui": "playwright test --ui",
"test:debug": "playwright test --debug",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:seed": "tsx src/db/seed.ts",
"db:seed:test": "tsx src/db/seed-test-data.ts",
"lighthouse": "lhci autorun",
"lighthouse:collect": "lhci collect",
"lighthouse:assert": "lhci assert",
"lighthouse:upload": "lhci upload",
"lighthouse:desktop": "lhci autorun --settings.preset=desktop",
"lighthouse:mobile": "lhci autorun --settings.preset=mobile",
"deploy:cdn": "bash scripts/deploy-cdn.sh",
"deploy:cdn:refresh": "bash scripts/refresh-cdn.sh",
"clean:tests": "bash scripts/maintenance/clean-test-files.sh",
"prepare": "husky"
},
"dependencies": {
"@antv/g2": "^5.4.8",
"@auth/drizzle-adapter": "^1.11.1",
"@libsql/client": "^0.17.0",
"@playwright/test": "^1.58.2",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@sentry/nextjs": "^10.42.0",
"@tiptap/extension-image": "^3.20.1",
"@tiptap/extension-link": "^3.20.1",
"@tiptap/pm": "^3.20.1",
"@tiptap/react": "^3.20.1",
"@tiptap/starter-kit": "^3.20.1",
"@types/three": "^0.183.1",
"@vercel/analytics": "^1.6.1",
"bcryptjs": "^3.0.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"critters": "^0.0.23",
"date-fns": "^4.1.0",
"dompurify": "^3.3.1",
"drizzle-orm": "^0.45.1",
"framer-motion": "^12.34.3",
"lucide-react": "^0.563.0",
"nanoid": "^5.1.6",
"next": "^16.2.1",
"next-auth": "^5.0.0-beta.30",
"react": "19.2.3",
"react-dom": "19.2.3",
"resend": "^6.9.2",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-react": "^5.32.1",
"tailwind-merge": "^3.4.0",
"three": "^0.183.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@axe-core/playwright": "^4.11.1",
"@babel/core": "^7.29.0",
"@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@commitlint/cli": "^20.5.0",
"@commitlint/config-conventional": "^20.5.0",
"@eslint/eslintrc": "^3.3.5",
"@lhci/cli": "^0.15.1",
"@tailwindcss/postcss": "^4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/bcryptjs": "^2.4.6",
"@types/dompurify": "^3.0.5",
"@types/jest": "^30.0.0",
"@types/nanoid": "^2.1.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-react": "^5.18.0",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"@typescript-eslint/parser": "^8.57.0",
"chrome-launcher": "^1.2.1",
"drizzle-kit": "^0.31.9",
"eslint": "^8.57.1",
"eslint-config-next": "^0.2.4",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"husky": "^9.1.7",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"k6": "^0.0.0",
"lighthouse": "^13.0.3",
"lint-staged": "^16.4.0",
"tailwindcss": "^4",
"ts-jest": "^29.4.6",
"tsx": "^4.21.0",
"typescript": "^5"
}
}