SmartTest

ADR-0002: TypeScript analysis engine

Context #

The spec calls for the TypeScript Compiler API, with tree-sitter where incremental parsing helps. Two compilers coexist: TypeScript 6.x, the last JavaScript-based compiler with the classic programmatic API, and TypeScript 7.x, the native compiler whose programmatic API is still maturing. SmartTest must resolve aliases, project references, exports maps and type-only imports exactly as tsc does, and stay fast when warm.

Decision #

Measured (benchmarks/RESULTS.md) #

Cold index: ~0.26 s at 50 modules, ~0.8 s at 500, ~2.1 s at 2,000 (4,000 files including tests). Warm index with nothing changed: 5–120 ms.

Consequences #

Edit this page on GitHub