title: Cannot read property 'mockResolvedValue' of undefined
body: <p>I'm getting an error mocking my api call</p>
  <pre><code>TypeError: Cannot read property 'mockResolvedValue&quot; of undefined
  </code></pre>
  <p>and cannot figure out why. I'm utilizing jest to test my api fetch call function.</p>
  <p>This is my function I'm exporting:</p>
  <pre><code>//file amData.jsx
  
  const axios = require('axios');
  
  async function fetchAssetManagerSummary() {
    const response = await axios.get(&quot;https://www.exampleUrl.com&quot;);
    return response.data;
  }
  
  module.exports = fetchAssetManagerSummary;
  </code></pre>
  <p>This is my test file</p>
  <pre><code>const fetchAssetManagerSummary = require('./amData');
  const axios = require('axios');
  jest.mock(&quot;axios&quot;);
  
  it(&quot;returns the object from fetch&quot;, async () =&gt; {
    axios.get.mockResolvedValue({
      data: [
        {
          userId: 1,
          id: 1,
          title: 'test'
        }
      ]
    })
    const data = await fetchAssetManagerSummary();
    console.log(&quot;data&quot;, data)
  });
  </code></pre>
  <p>The error I'm getting:</p>
  <p><a href="https://i.stack.imgur.com/UUNrH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UUNrH.png" alt="enter image description here" /></a></p>