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

Has anyone successfully upgraded to latest Jest version 28.0.0?
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.


Solution 1:[1]

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 install --save-dev jest-environment-jsdom

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 marko424