question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jest encountered an unexpected token

See original GitHub issue

Hello everyone, I’m facing a weird issue with jest where it gives me an Unexpected token error. Here’s a screenshot of the error. image

It looks like it can’t parse the component the starts with <svg. I’m not sure if it is a babel issue. (babel 7.0).

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
jeysalcommented, Jun 19, 2019

Yes, this looks like Babel missing the react preset or so

0reactions
github-actions[bot]commented, May 11, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest encountered an unexpected token - Stack Overflow
json when using create-react-app. I have issues with Jest picking up an internal library, Jest would display 'unexpected token' errors wherever ...
Read more >
How I Fixed The Unexpected Token Error In Jest
Jest encountered an unexpected token. Depending upon your setup, you might see the error on the first line of the code file or...
Read more >
Jest encountered an unexpected token · Issue #11591 - GitHub
This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax....
Read more >
test suite failed to run jest encountered an unexpected token ...
Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not...
Read more >
Jest encountered an unexpected token - Forum - bpmn.io
Hi, I am using bpmnlint-loader to load the .bpmnlintc file, and its working fine. import bpmnlintConfig from '../../../../.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found