use mocha with typescript code example Example: using chai in typescript npm install chai mocha ts-node @types/chai @types/mocha --save-dev