Answers for "Test suite failed to run Jest encountered an unexpected token SyntaxError: Unexpected token '<'"

0

jest encountered an unexpected token

Add this in your package.json jest config.

"transform": {
      "\.js$": "<rootDir>/node_modules/babel-jest"
    },
Let me know if the issue still persists.
Posted by: Guest on March-04-2021

Code answers related to "Test suite failed to run Jest encountered an unexpected token SyntaxError: Unexpected token '<'"

Browse Popular Code Answers by Language