#jest-environment-jsdom error in 1.6.0

2 messages · Page 1 of 1 (latest)

granite sand
#

after bumping to 1.6.0 and backstage/cli 1.20.0-next.0 most of my teams test fail wiht this. i tried manually syncing up the version of jest-environment-jsdom with jest's but it didnt make a difference

  ● Test suite failed to run

    TypeError: Cannot read property 'html' of undefined

      at new JSDOMEnvironment (../../../node_modules/jest-environment-jsdom/build/index.js:72:44)
granite sand
#

resolved this, had to set a version in resolutions of package.json like so:

#package.json
{
    ...,
    "resolutions": {
        ...,
        "jest-environment-jsdom": "^29.0.2"
    }
}