We want to be able to test React packages, which might reference 'window' and such. Problem is, there's a bug in the jest-environment-jsdom package where it doesn't include 'structuredClone', so we add it.
It also looks like there's a bug in the config file where it's not properly reading the package.json, so let's fix that too.
Overview
We want to be able to test React packages, which might reference 'window' and such. Problem is, there's a bug in the jest-environment-jsdom package where it doesn't include 'structuredClone', so we add it.
It also looks like there's a bug in the config file where it's not properly reading the
package.json
, so let's fix that too.