jest syntax error unexpected token code example
Example: jest encountered an unexpected token
Add this in your package.json jest config.
"transform": {
"\\.js$": "/node_modules/babel-jest"
},
Let me know if the issue still persists.
Add this in your package.json jest config.
"transform": {
"\\.js$": "/node_modules/babel-jest"
},
Let me know if the issue still persists.