{"repo":"piotrwitek/ts-mocha","free":true,"listed":false,"github":"https://github.com/piotrwitek/ts-mocha","clone":"git clone https://github.com/piotrwitek/ts-mocha.git","description":"Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity","language":"JavaScript","stars":195,"topics":["ts-mocha","mocha","typescript","testing-tools","typescript-tests"],"license":"MIT","category":"dev-tools","readme_excerpt":"TS-Mocha ts-mocha is a streamlined process wrapper for mocha that simplifies running tests written in TypeScript. It automatically handles the necessary configuration and adds custom arguments, saving you from the hassle of managing a complex test setup in your project. Why? Setting up Mocha to work with TypeScript can be challenging and time-consuming. It requires careful configuration to ensure compatibility between the two tools. Additionally, breaking changes in mocha or ts-node can disrupt your setup, forcing you to spend valuable time troubleshooting and fixing it. ts-mocha eliminates these headaches by handling all the configuration for you. It allows you to run tests in TypeScript just as easily as you would with regular Mocha and JavaScript, without worrying about the underlying setup. On top of that, we’ve included several useful options tailored specifically for TypeScript projects to make your development experience even smoother. Check them out below! Installation Usage - CLI Usage CLI options consist of all the options of regular Mocha plus extra options below: -p, --project - relative or absolute path to a tsconfig.json file (equivalent of tsc -p ) [default: \"./tsconfig.json\"] Example: --paths - opt-in feature toggle flag to enable tsconfig-paths integration [default: false] For this to work you need to have tsconfig-paths package installed in your project Example: This feature is required if you're using path mapping feature in your project ( paths compiler op","default_branch":null,"files":null,"tree":[],"storefront":"/r/piotrwitek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/piotrwitek/ts-mocha/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}