title: Jest Test suite failed to run with await
body: <p>I got a Javascript class with an <code>async</code> method (of course with <code>await</code> inside).</p>
  
  <p>I'm trying to test this method, so I tried adding a test with this line:</p>
  
  <pre><code>const res = await myObj.theAsyncMethod("param");
  </code></pre>
  
  <p>this line causes an error:</p>
  
  <blockquote>
    <p>Test suite failed to run</p>
  </blockquote>
  
  <p>and it points to the <code>await</code> as the error. If I remove the <code>await</code>, the test does not fail to run.</p>
  
  <p>How can I fix this issue?</p>