This directory consists on how to configure babel for Mocha
node module installation of mocha
npm i --save-dev mocha
node module installation of babel
npm install --save-dev @babel/core @babel/cli @babel/preset-env @babel/register
As per the documentation provided by babel, we have to use "test": "mocha --require babel-register"
but this will not work. Instead of this we have to use "test": "mocha --require @babel/register"
babel --> https://babeljs.io/setup#installation
Mocha --> https://mochajs.org/