title: "ReferenceError: structuredClone is not defined" using jest with nodejs & typescript
body: <p>I'm running tests with <code>jest</code> in a simple NodeJS app that uses typescript. My test is throwing an error: <code>ReferenceError: structuredClone is not defined</code>.</p>
  <p>I'm not getting any linter errors and the code compiles fine normally.</p>
  <pre class="lang-js prettyprint-override"><code>  const variableForValidation = structuredClone(variableForValidationUncloned);
  </code></pre>
  <p>package.json:</p>
  <pre class="lang-json prettyprint-override"><code>  &quot;dependencies&quot;: {
      ...
    },
    &quot;devDependencies&quot;: {
      &quot;@types/jest&quot;: &quot;^29.0.0&quot;,
      &quot;@types/node&quot;: &quot;^18.7.15&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^5.36.1&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^5.36.1&quot;,
      &quot;eslint&quot;: &quot;^8.23.0&quot;,
      &quot;jest&quot;: &quot;^28.0.1&quot;,
      &quot;nodemon&quot;: &quot;^2.0.19&quot;,
      &quot;serverless-plugin-typescript&quot;: &quot;^2.1.2&quot;,
      &quot;ts-jest&quot;: &quot;^28.0.8&quot;,
      &quot;ts-node&quot;: &quot;^10.9.1&quot;,
      &quot;typescript&quot;: &quot;^4.8.2&quot;
    }
  
  </code></pre>
  <p>This github issue suggests to me that the issue has been resolved: <a href="https://github.com/facebook/jest/issues/12628" rel="nofollow noreferrer">https://github.com/facebook/jest/issues/12628</a> - or perhaps I'm misunderstanding?</p>
  <p>I've seen a similar Stack question but using Mocha: <a href="https://stackoverflow.com/questions/72790253/mocha-not-recognizing-structuredclone-is-not-defined">mocha not recognizing structuredClone is not defined</a></p>