npmnode.js95% confidence\u2191 149

Upgrading Jest to v29 - Error Test environment jest-environment-jsdom cannot be found

Full error message
Has anyone successfully upgraded to latest Jest version 29?

I'm receiving an error:

Error: Test environment jest-environment-jsdom cannot be found. Make sure the testEnvironment configuration option points to an existing node module.

Jest team added more descriptive error message in version 28.0.1 Error:... As of Jest 28 "jsdom" is no longer shipped by default, make sure to install it separately. Installing jsdom package resolves the issue: # npm npm install -D jest-environment-jsdom # yarn yarn add -D jest-environment-jsdom

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/25960a903a17dbeaaa4302614f5e893c321426127457d41cabf38f2c7795fa13
hash \u00b7 25960a903a17dbeaaa4302614f5e893c321426127457d41cabf38f2c7795fa13
Upgrading Jest to v29 - Error Test environment jest-environm… — DepScope fix | DepScope