title: "Cannot read property _location of null" when using React Apollo in a Jest test case
body: <p>Given the following component:</p>
  
  <pre><code>export function App() {
    return withApollo(&lt;BrowserRouter&gt;
      &lt;MatchListRouteHandler /&gt;
    &lt;/BrowserRouter&gt;);
  }
  
  // MatchListRouteHandler
  export const Query = addTypenameToDocument(gql`
    query GetMatches {
      matches {
        id
      }
    }
  `);
  
  export default graphql(Query)(MatchListRouteHandler);
  </code></pre>
  
  <p>And the test case:</p>
  
  <pre><code>it('renders without crashing', () =&gt; {
    const div = document.createElement('div');
    ReactDOM.render(&lt;App /&gt;, div);
  });
  </code></pre>
  
  <p>I get the following error when Jest attempts to run the test case:</p>
  
  <pre><code>/home/dan/match-history-analyser/node_modules/jsdom/lib/jsdom/browser/Window.js:148
        return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
                                                                                ^
  
  TypeError: Cannot read property '_location' of null
      at Window.get location [as location] (/home/dan/Projects/match-history-analyser/node_modules/jsdom/lib/jsdom/browser/Window.js:148:79)
      at Timeout.callback [as _onTimeout] (/home/dan/Projects/match-history-analyser/node_modules/jsdom/lib/jsdom/browser/Window.js:525:40)
      at ontimeout (timers.js:386:14)
      at tryOnTimeout (timers.js:250:5)
      at Timer.listOnTimeout (timers.js:214:5)
  </code></pre>