title: 'globalThis' underfined for Jest test cases
body: <p>I am using globalThis property specifically globalThis.scrollTo(0,0) in my React WebApp.</p>
  
  <p>I am using Jest for unit testing alongwith Enzyme.</p>
  
  <p>As of test cases fail as it is unable to identify globalThis and says that 'globalThis' is undefined.</p>
  
  <p>Is there a way to introduce globalThis into the tests just like jsdom does for window etc ?</p>
  
  <p>For Example</p>
  
  <p>-- abc.tsx --</p>
  
  <pre><code>const abc: React.FC&lt;CustomProps&gt; = props =&gt; {
  useEffect(() =&gt; {
  globalThis?.scrollTo(0,0);
  }
  }
  </code></pre>
  
  <p>-- abcTest.tsx --</p>
  
  <pre><code>wrapper = mount(&lt;abc/&gt;);
  </code></pre>
  
  <p><strong>mount</strong> produces error that "globalThis" is undefined</p>