Answers for "jest invalid or 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
0

jest invalid or unexpected token

npm test -- --transformIgnorePatterns "node_modules/(?!(your-untranspiled-module|some-other-module)/)"
Posted by: Guest on September-24-2021

Code answers related to "jest invalid or unexpected token"

Code answers related to "Javascript"

Browse Popular Code Answers by Language