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
I had the same issue and fixed it by reading from the babel documentation for integrating Babel with Mocha :
{ "scripts": { "test": "mocha --compilers js:babel-register" } }