test: add vitest unit tests across packages

Cover shared zod schemas, extract traversal/refs/downloads, and tts filename/error handling. Document the test setup in the README and docs.
This commit is contained in:
2026-08-08 11:13:14 +08:00
parent 1de559c321
commit 92f11db415
15 changed files with 1185 additions and 3 deletions
+4 -2
View File
@@ -7,10 +7,12 @@
"dev": "pnpm --filter @tts/proxy dev",
"build": "pnpm -r build",
"lint": "pnpm -r lint",
"typecheck": "pnpm -r typecheck"
"typecheck": "pnpm -r typecheck",
"test": "vitest run"
},
"packageManager": "pnpm@10.33.0",
"devDependencies": {
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"vitest": "^4.1.10"
}
}