types-testing

JSON →
library 1.0.2 ·javascript
verified Jun 4, 2026

A runtime type assertion library for testing TypeScript types inside unit test frameworks (Jest, Vitest, Bun). v1.0.2 ships with fast, comment-free assertions like toBe, toBeAny, toBeStringLiteral, and detailed stack traces. Unlike tsd or expect-type, it uses standard expect-style syntax and integrates directly into existing test suites without special comment markers. Released under MIT, with semver releases triggered by PRs. Depends only on TypeScript ^5 || ^6 as a peer dependency. Ships its own TypeScript declarations.