{"library":"ts-mocha","type":"library","category":null,"description":"ts-mocha is a lightweight wrapper around the Mocha testing framework, designed to simplify the execution of TypeScript test files. It integrates with `ts-node` to compile TypeScript on the fly, eliminating the need for a separate compilation step prior to running tests. The package is currently at version 11.1.0 and maintains an active release cadence, frequently updating to support newer versions of Mocha, ts-node, and TypeScript itself. Its primary differentiator is the 'zero-config' approach to getting TypeScript tests running with Mocha, abstracting away complex `ts-node` and `tsconfig-paths` configurations. It also offers specific TypeScript-centric features like optional type-checking during test runs and path mapping resolution, which are crucial for larger TypeScript projects.","language":"javascript","status":"active","version":"11.1.0","tags":["javascript","ts","mocha","typescript","ts-node","test"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-mocha","imports":["ts-mocha --project tsconfig.json --paths test/**/*.spec.ts","require('ts-mocha')"]},{"cmd":"yarn add ts-mocha","imports":[]},{"cmd":"pnpm add ts-mocha","imports":[]}],"homepage":null,"github":"https://github.com/piotrwitek/ts-mocha","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-mocha","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-mocha/compatibility"}}