title: React-slick slider test case error - cannot read property 'querySelectorAll'
body: <p>I am using <a href="https://nextjs.org/" rel="nofollow noreferrer">next.js</a> for React project and used <a href="https://react-slick.neostack.com/" rel="nofollow noreferrer">react-slick</a> slider plugin it's working properly but when I try to run test it through - `TypeError: Cannot read property 'querySelectorAll' of null.</p>
  
  <p>For test setup I used <a href="https://github.com/akiran/react-slick/blob/master/test-setup.js" rel="nofollow noreferrer">this</a> configuration.</p>
  
  <pre><code>TypeError: Cannot read property 'querySelectorAll' of null
  
    16 | 
    17 |   it('render with error param', () =&gt; {
  &gt; 18 |     const tree: ReactTestRendererJSON = renderer.create(
       |                                                  ^
    19 |       &lt;Home /&gt;
    20 |     ).toJSON();
    21 |   });
  </code></pre>
  
  <p>Searched a lot but didn't get any solution.</p>