npm i mocha chai --save-d code example Example: mocha test cases in node js example $ npm install --save mocha chai