title: Error: Not implemented: window.scrollTo. How do we remove this error from Jest test?
body: <h1>The error:</h1>
  
  <pre><code>console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
        Error: Not implemented: window.scrollTo
            at module.exports (/Users/me/Projects/my-project/node_modules/jsdom/lib/jsdom/browser/not-implemented.js:9:17)
            at /Users/me/Projects/my-project/node_modules/jsdom/lib/jsdom/browser/Window.js:594:7
  </code></pre>
  
  <p>Because we are using <code>window.scrollTo(0,0)</code>.</p>
  
  <p>Also getting <code>Not implemented Navigation</code> for:</p>
  
  <p><code>window.location.replace(externa_link)</code> same error happens with <code>.assign</code>.</p>
  
  <p>I tried googling for solutions with react-router, but all examples use some component which contains <code>window.location</code>.</p>
  
  <p>Is there a way to avoid this error? Or hide it?</p>
  
  <p>I did some research  and found that the Facebook team isn't going to address it. Is there a way to suppress these errors/warnings when running <code>jest test</code>?</p>
  
  <p>Our code doesn't break and all tests pass otherwise.</p>