mirror of
https://github.com/hanzoai/id.git
synced 2026-10-26 20:59:52 +00:00
The connect crypto/connector suites (bitcoin, ton, xrp, caip122, verify,
connectors — 6 files, 71 tests) imported `vitest` but vitest was never
installed and connect had no `test` script: they had never run. The auth /
shared / onboarding suites ran green under three separate per-package
`node --test --experimental-strip-types` scripts — a divergent second runner.
Decomplect to ONE runner:
- add vitest 3.2.7 (built for the repo's vite 7) as the sole test dep + root
`vitest.config.ts` (include pkgs/**/src/**/*.test.ts, node env)
- root `test` = `vitest run`; drop the three per-package node:test scripts
- swap `import { test } from 'node:test'` -> `'vitest'` in the 6 node:test
files; node:assert/strict assertions kept verbatim (real assertions, no
rewrites)
- add pkgs/connect/tsconfig.json (matching siblings) so `pnpm tc` is green —
connect had no tsconfig, so its typecheck errored out entirely
Result: `pnpm test` 12 files / 127 tests pass; `pnpm tc` green across all 6
projects.
Co-authored-by: Hanzo Dev <[email protected]>
10 lines
170 B
JSON
10 lines
170 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"outDir": "dist",
|
|
"noEmit": true
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["src/**/*.test.ts"]
|
|
}
|