title: Updating CRA from version 4 to version 5 breaking babel-jest
body: <p>After updating CRA to version 5.</p>
  <p>When running <code>npm test</code> I see the following error:</p>
  <pre><code>Determining test suites to run...
  
    ● Test suite failed to run
  
      TypeError: babelJest.createTransformer is not a function
  
        at Object.&lt;anonymous&gt; (node_modules/react-app-rewired/scripts/utils/babelTransform.js:16:28)
        at node_modules/@jest/transform/build/ScriptTransformer.js:382:73
            at Array.map (&lt;anonymous&gt;)
  </code></pre>
  <p>I've checked and there is a fix for babel-jest addressing this issue:
  <a href="https://github.com/facebook/jest/issues/11444" rel="noreferrer">https://github.com/facebook/jest/issues/11444</a> and it was released on version <code>28</code></p>
  <p>CRA depends on version <code>^27.4.2</code>.</p>
  <p>Has anyone faced this or have an idea on a proper solution that does not involve overriding the babel-jest version specified in CRA?</p>