Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
 
PREVIOUS NEXT
Tagged: #jest #encountered #unexpected #token
ADD COMMENT
Topic
Name
7+9 =