title: Cannot run jest with react-native: TypeError: Cannot destructure property `instrument` of 'undefined' or 'null'
body: <p>I upgraded a react native project from 0.57.8 to 0.63.4</p>
  <p>Before the upgrade my jest tests were passing. Now I can't run any of them, even if I take them all out and put this only this in <code>foo.test.js</code>:</p>
  <pre class="lang-js prettyprint-override"><code>describe(&quot;helpers&quot;, () =&gt; {
    it(&quot;passes&quot;, () =&gt; expect(1).toEqual(1));
  });
  </code></pre>
  <p>relevant parts of <code>package.json</code>:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;name&quot;: &quot;x&quot;,
    &quot;version&quot;: &quot;8.2.0&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      ...
      &quot;test&quot;: &quot;jest  ./src/&quot;,
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@babel/runtime&quot;: &quot;^7.5.5&quot;,
      ...
      &quot;babel-jest&quot;: &quot;^27.0.6&quot;,
      ...
      &quot;jest&quot;: &quot;^27.0.6&quot;,
      &quot;jest-cli&quot;: &quot;^27.0.6&quot;,
      &quot;react-native&quot;: &quot;0.63.4&quot;,
      &quot;react-native-cli&quot;: &quot;^2.0.1&quot;,
      ...
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.8.4&quot;,
      &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.14.5&quot;,
      &quot;@babel/runtime&quot;: &quot;^7.8.4&quot;,
      ...
    },
  }
  </code></pre>
  <p>When I run the test:</p>
  <pre><code>$ npm test
  
  &gt; jest  ./src/
  
   FAIL  src/lib/foo.test.js
    ● Test suite failed to run
  
      TypeError: Cannot destructure property `instrument` of 'undefined' or 'null'.
  
        at Object.getCacheKey (node_modules/fbjs-scripts/jest/createCacheKeyFunction.js:35:34)
        at ScriptTransformer._getCacheKey (node_modules/@jest/transform/build/ScriptTransformer.js:280:41)
        at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:351:27)
        at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:588:32)
        at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
        at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:815:19)
  
  Test Suites: 1 failed, 1 total
  Tests:       0 total
  Snapshots:   0 total
  Time:        0.369 s
  Ran all test suites matching /.\/src\//i.
  </code></pre>