title: How to mock const method in jest?
body: <p>I unit test code in typescript, use jest. Please teach me how to mock <code>getData</code> to return the expected value. My code as below:</p>
  
  <pre class="lang-ts prettyprint-override"><code>// File util.ts
  export const getData = async () =&gt; {
      // Todo something
      return data;
  }
  
  // File execution.ts import { getData } from './util';
  function execute()
  {
      // todo something
      const data = await getData();
      // todo something 
  }
  </code></pre>