title: How to test if a void async function was successful with jest?
body: <p>How do you concisely test if a void async function executed successfully with jest? I'm using TypeScript.</p>
  
  <pre><code>// foo.ts
  export class Foo {
    public async bar(): Promise&lt;void&gt; {
      await someAsync();
    }
  }
  </code></pre>
  
  <p>How to test that <code>new Foo().bar()</code> does not throw an error?</p>