test: подключить vitest и покрыть утилиты юнит-тестами

This commit is contained in:
kewldan
2026-07-13 01:09:33 +03:00
parent 758a645dff
commit 42788e842d
9 changed files with 527 additions and 3 deletions

View File

@@ -13,6 +13,8 @@
"format": "biome format --write .",
"format:check": "biome format .",
"check": "biome check .",
"test": "vitest run",
"test:watch": "vitest",
"type-check": "tsc --noEmit",
"preview": "vite preview",
"prepare": "husky"
@@ -87,7 +89,8 @@
"postcss": "^8.4.31",
"tailwindcss": "^3.4.19",
"typescript": "^5.2.2",
"vite": "^7.3.1"
"vite": "^7.3.1",
"vitest": "^4.1.10"
},
"lint-staged": {
"*.{ts,tsx,json}": [