title: Jest appears unaffected by node --max-old-space-size option
body: <p>I have been working to overcome apparent memory leaks when running jest that are described here: <a href="https://github.com/facebook/jest/issues/7874" rel="noreferrer">https://github.com/facebook/jest/issues/7874</a></p>
  <p>I would like to just give jest a whole bunch of heap space so that my tests will complete in spite of the leaks.  However, using this command line:</p>
  <pre><code>node --max-old-space-size=8192 --expose-gc ./node_modules/.bin/jest --no-cache --runInBand --logHeapUsage
  </code></pre>
  <p>I still get &quot;Javascript heap out of memory&quot; at around 1500MB of heap usage.  If I run:</p>
  <p>node --max-old-space-size=8192</p>
  <p>and then do:</p>
  <pre><code>&gt; v8.getHeapStatistics()
  {
     ...
     heap_size_limit: 8640266240
     ...
  }
  </code></pre>
  <p>so clearly I can affect node's heap size.  But it somehow is not affecting jest.</p>
  <p>Node: 16.13.0
  Jest: 27.4.4
  Any thoughts?</p>