ts-node Test Register

JSON →
library 10.0.0 ·javascript
verified May 27, 2026

ts-node-test-register is a utility package designed to simplify running TypeScript tests by integrating with test runners like Mocha. It enables the use of a dedicated `tsconfig.json` file (e.g., `test/tsconfig.json`) specifically for test code, allowing for different compiler options (like `allowJs`) compared to the main project's configuration. The package ensures type checking is active by default during testing, adhering to the principle that test code should also be type-safe. It closely tracks major releases of its peer dependency, `ts-node`, with the current stable version being 10.0.0. Its main differentiator is the automatic loading of test-specific `tsconfig.json` files and explicit enabling of type checks, providing a robust environment for TypeScript testing.

total hits 17
actors 6 distinct systems
last hit 23h ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇪🇸 Spain · 🇫🇷 France · 🇩🇪 Germany