The solutions offered in other related questions, such as including the proper presets (es2015) in .babelrc, are already implemented in my project.
I have two projec
--compilers is deprecated.
--compilers
My simple solution:
npm install --save-dev babel-core
And in the package.json add your test script like this:
"scripts": { "test": "mocha --require babel-core/register ./test/**/*.js -r ./test-setup.js" },