title: Testing XHR with Jest
body: <p>I have this simple test case:</p>
  
  <pre><code>describe ('Request', function () {
    it ('should perform a XHR "GET" request', function (done) {
      var xhr = new XMLHttpRequest;
  
      xhr.open('GET', 'http://google.com', true);
      xhr.send();
    });
  });
  </code></pre>
  
  <p>The point is: when I do <code>jest</code> in my terminal, seems it's not requesting <code>http://google.com</code>. I think this is happening because Jest uses <a href="https://github.com/tmpvar/jsdom" rel="nofollow">jsdom</a> under the hood and it haven't capability to reproduce an HTTP request out of the browser itself.</p>
  
  <p>Suggestions?</p>
  
  <p><em>Note: any errors are appearing, the test is passing, but the request isn't being made.</em></p>