Answers for "SyntaxError: Unexpected token . in js jest"

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 "SyntaxError: Unexpected token . in js jest"

Browse Popular Code Answers by Language