{"library":"ts-node-test-register","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"10.0.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-node-test-register","imports":["require('ts-node-test-register');","import 'ts-node-test-register';","mocha --require ts-node-test-register \"test/**/*.ts\""]},{"cmd":"yarn add ts-node-test-register","imports":[]},{"cmd":"pnpm add ts-node-test-register","imports":[]}],"homepage":null,"github":"https://github.com/azu/ts-node-test-register","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-node-test-register","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ts-node-test-register/compatibility"}}