add Babel (i.e., in package.json) with env preset to be able to run the tests in NodeJS. code example Example: install babel preset env npm install --save-dev @babel/preset-env