Added the dependencies
package.json
"devDependencies": {
"babel-core": "^7.0.0-0",
"babel-jest": "^23.4.2",
"babel-preset-env": "^1.7.0",
"jest": "^23.4.2",
"jest-cli": "^23.4.2",
"regenerator-runtime": "^0.12.1"
},
.babelrc
{
"presets": ["env"]
}
Still, when running the test SyntaxError: Unexpected token export
You'll likely need to change .babelrc to babel.config.js: https://babeljs.io/docs/en/next/babelconfigjs.html and add @babel/core to deps. Please read docs carefully.
Also, this is not a help forum.
Tried this but it didn't solve the problem.