title: TypeError: (0 , _axios.default) is not a function when use jest.mock('axios') inside a *.test.js file
body: <p>I try to mock <code>axios</code> module inside my test file like this</p>
  
  <pre><code>// mycomponent.test.js
  import axios from 'axios';
  
  jest.mock('axios', () =&gt; ({
    get: jest.fn(() =&gt; Promise.resolve({ data: 'data' })),
    default: jest.fn(() =&gt; Promise.resolve({ data: 'data' })),
  }));
  </code></pre>
  
  <p>But after i add <code>jest.mock('axios')</code> into my test file, i got an error like this.</p>
  
  <pre><code>TypeError: (0 , _axios.default) is not a function
  
        55 |       this.props.updateGlobalLoading(true);
        56 | 
      &gt; 57 |       axios({
           |       ^
        58 |         method: 'get',
        59 |         url: '/v1/api/portal-xml-list',
        60 |       }).then((res) =&gt; {
  </code></pre>
  
  <p>So how should i fix this, any thing that i missed to set for <code>axios</code> mocking?</p>
  
  <p>Thanks!</p>