title: create-react-app jest encountered unexpected token {
body: <p>I'm developing a React app with a QR-scanner in it with <code>create-react-app</code>.<br>
  I've added the module <code>react-qr-reader</code> which in turn uses the modules <code>webrtc-adapter</code>.</p>
  
  <p>It all works great, until I run <code>yarn test</code>. Then it shows me this error:
  <a href="https://i.stack.imgur.com/mEJps.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mEJps.png" alt="enter image description here"></a></p>
  
  <p>I've already ejected the project so I can use <code>transformIgnorePatterns</code> and added <code>node_modules/webrtc-adapter</code> to the array, but that still results in the same error.</p>
  
  <p>Can anyone help me with this?</p>