title: How can I avoid app crashing because of importing jest?
body: <p>I tried many ways of importing <code>jest</code> into my project. All of them cause my app to crash displaying the blank screen when visiting <code>localhost:3000</code> even though all statements cause app to compile (the single line of import causes the app to crash):</p>
  <pre><code>import { mocked } from &quot;ts-jest&quot;
  
  import { mocked } from '@jest/globals'
  
  import { jest } from 'ts-jest'
  
  import { jest } from '@jest/globals'
  </code></pre>
  <p>App crashes with the following error:</p>
  <pre><code>VM551:2 Uncaught ReferenceError: process is not defined
  </code></pre>
  <p>I have the following dependency in <code>package.json</code>:</p>
  <pre><code>&quot;ts-jest&quot;: &quot;^28.0.7&quot;
  </code></pre>
  <p>What might be the reason behind crashing? What is the correct way to import <code>jest</code>? I need specifically <code>mocked</code> object to be available, is there a right way to make it work without crashing the app?</p>