Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Boy I spent a couple of days already toiling away at this! THANK YOU for the tip of installing them separately! I owe you a beer, sir! Commented May 8, 2022 at 16:25
  • 3
    Is this how it is supposed to be? "devDependencies": { "jest": "^28.1.2", "jest-environment-jsdom": "^28.1.2" } Commented Jul 8, 2022 at 8:50
  • 1
    @AmirŠaran Yes, for example. Is it working? Commented Jul 11, 2022 at 19:30
  • 4
    If you have jest installed globally as I do, make sure to update it too. Otherwise, running jest from your terminal will result in the same error. Commented Jul 28, 2022 at 14:39
  • 2
    jestjs.io/docs/upgrading-to-jest29#jsdom-upgrade Commented Aug 29, 2022 at 14:51