feat(web): Vitest 测试基建与首批单测(#27)+ 公共格式化函数

This commit is contained in:
weijuesen
2026-08-13 14:51:57 +08:00
parent e9991a2954
commit 0e6dc007f3
6 changed files with 1241 additions and 17 deletions
+6 -1
View File
@@ -7,6 +7,7 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "oxlint",
"test": "vitest run",
"preview": "vite preview"
},
"dependencies": {
@@ -24,12 +25,16 @@
"react-router-dom": "^7.18.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^24.13.2",
"@types/react": "^18.3.27",
"@types/react-dom": "^18.3.7",
"@vitejs/plugin-react": "^6.0.3",
"jsdom": "^30.0.1",
"oxlint": "^1.71.0",
"typescript": "~6.0.2",
"vite": "^8.1.1"
"vite": "^8.1.1",
"vitest": "^4.1.10"
}
}