What problem does it solve?
It eliminates brittle TypeScript test code that relies on unsafe as type assertions by replacing them with type-safe partial data builders.
Core Features & Use Cases
- Migrate large test fixtures: Convert “fake the entire object” patterns into minimal, partial payloads that still type-check.
- Replace as Type with fromPartial: Use fromPartial for valid partial data that should remain type-correct.
- Replace as unknown as Type with fromAny: Use fromAny for intentionally incorrect test data while preserving developer ergonomics.
- Use case: When tests construct large request/response objects but only a few properties matter, migrate those tests to pass only the required fields safely.
Quick Start
Ask an AI to migrate your test files by replacing as Request patterns with fromPartial for valid partial data and replacing double-as patterns with fromAny for intentionally incorrect inputs, while keeping the rest of the test logic unchanged.