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