title: Testing simple GET request using Axios and Jest
body: <p>I'm using <code>axios</code> <code>0.18.0</code>, <code>jest</code> <code>22.4.2</code> and I'm trying to test a simple request using Axios and Jest based on the <a href="https://github.com/axios/axios/blob/master/examples/all/index.html" rel="nofollow noreferrer">Axios documentation example</a> and <a href="https://facebook.github.io/jest/docs/en/tutorial-async.html#async-await" rel="nofollow noreferrer">Jest Async / Await documentation</a></p>
  
  <pre><code>// services.js
  import axios from 'axios';
  
  export const getUser = () =&gt; axios.get('https://api.github.com/users/mzabriskie');
  
  
  // services.spec.js
  import { getUser } from './services';
  
  it('should return data from github user', async () =&gt; {
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
    const result = await getUser();
    console.log('RESULT --&gt;', result);
  });
  </code></pre>
  
  <p>Once the <code>DEFAULT_TIMEOUT_INTERVAL</code> is passed (in this example 30 seconds), the test gives the following error message:</p>
  
  <pre><code>Error: Timeout - Async callback was not invoked within timeout 
  specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
  </code></pre>
  
  <p>And it never reaches the <code>console.log</code> statement.</p>
  
  <p>Any idea what I might be missing here or how to debug this?</p>