title: react-lazyload breaks jest snapshots?
body: <p>I've been working on optimising my react project and today I implemented lazy loading of all my images using react-lazyload (<a href="https://github.com/jasonslyvia/react-lazyload" rel="nofollow noreferrer">https://github.com/jasonslyvia/react-lazyload</a>).</p>
  
  <p>The package works just fine but as soon as I tried to update my snapshot tests they all failed!</p>
  
  <p>The error I'm getting is:</p>
  
  <pre><code>Uncaught [TypeError: Cannot read property 'position' of undefined]
  </code></pre>
  
  <p>I tried seeing what I could find on google but nothing came up.</p>
  
  <p>Here is an example of one of my snapshot tests (they're about as basic as can be):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react';
  import renderer from 'react-test-renderer';
  import App from './App';
  
  describe('App', () =&gt; {
      describe('Component Snapshot', () =&gt; {
          it('should render correctly', () =&gt; {
              const componentSnapshot = renderer.create(&lt;App /&gt;).toJSON();
              expect(componentSnapshot).toMatchSnapshot();
          });
      });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Do I need to mock the lazy load package? If so does anyone have any advice of how I would go about doing that?
  Any help is greatly appreciated.</p>