feat: 增加测试覆盖率并优化代码质量

test: 添加单元测试和端到端测试
refactor: 重构登录页面和上传模块
ci: 更新测试覆盖率阈值至42%
build: 添加测试相关依赖
docs: 更新测试文档
style: 修复代码格式问题
This commit is contained in:
张翔
2026-03-11 11:14:37 +08:00
parent 8fd7ed84ed
commit b207bfa7af
58 changed files with 14494 additions and 655 deletions
+4 -1
View File
@@ -19,6 +19,7 @@
"test:allure:open": "allure open allure-report",
"test:allure:serve": "allure serve allure-results",
"test:all-with-progress": "node run-tests-with-progress.js",
"test:coverage": "playwright test --config=playwright.coverage.config.ts && node coverage-reporter.js",
"install": "playwright install --with-deps"
},
"devDependencies": {
@@ -29,8 +30,10 @@
"allure-playwright": "^3.5.0",
"chrome-launcher": "^1.2.1",
"glob": "^13.0.6",
"istanbul-lib-coverage": "^3.2.2",
"lighthouse": "^13.0.3",
"typescript": "^5.3.0"
"typescript": "^5.3.0",
"v8-to-istanbul": "^9.3.0"
},
"dependencies": {
"@sentry/nextjs": "^10.42.0"