test(tooling): add vitest baseline policy and order tests

This commit is contained in:
zetaloop
2026-02-22 14:51:21 +08:00
parent 6517018a9c
commit f8c4c87c61
5 changed files with 976 additions and 4 deletions
+7 -4
View File
@@ -11,7 +11,9 @@
"format": "prettier \"**/*.{ts,tsx,js,jsx,mjs,cjs,json,css,yml,yaml}\" --write",
"format:check": "prettier \"**/*.{ts,tsx,js,jsx,mjs,cjs,json,css,yml,yaml}\" --check",
"check": "pnpm lint && pnpm typecheck && pnpm format:check",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@hookform/resolvers": "^5.2.2",
@@ -33,11 +35,11 @@
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"eslint": "^9.39.3",
"eslint-config-next": "^16.1.6",
"eslint-config-prettier": "^10.1.8",
@@ -46,6 +48,7 @@
"shadcn": "^3.8.5",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
"typescript": "^5",
"vitest": "^4.0.18"
}
}