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
+2 -1
View File
@@ -192,7 +192,8 @@ packages/extract → flatten objects / extract refs / download assets
- TypeScript strict mode.
- `tsx` for dev, `tsc` for build.
- Root scripts: `pnpm dev`, `pnpm build`, `pnpm lint`.
- `vitest` for unit tests, colocated as `*.test.ts` next to sources.
- Root scripts: `pnpm dev`, `pnpm build`, `pnpm test`, `pnpm lint`.
## Build order