Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: jest-environment-jsdom@29.7.0 is pulling older jsdom v20 #14958

Closed
bmnidhin opened this issue Mar 14, 2024 · 3 comments
Closed

[Bug]: jest-environment-jsdom@29.7.0 is pulling older jsdom v20 #14958

bmnidhin opened this issue Mar 14, 2024 · 3 comments

Comments

@bmnidhin
Copy link

bmnidhin commented Mar 14, 2024

Version

29.7.0

Steps to reproduce

  • Create a blank repo with npm init
  • npm i jest-environment-jsdom@latest
  • see jest-environment-jsdom package.json from node_modules
Screenshot 2024-03-14 at 12 28 50 PM

Expected behavior

Expected to see jsdom v22 for as per v29.7.0 https://github.com/jestjs/jest/blame/94915dd0e97c039c74f8e97bf8c250aeb41dca09/packages/jest-environment-jsdom/package.json#L29

Actual behavior

Currently for v29.7.0 we are seeing jsdom 20.0.0

Additional context

npm explain jsdom      

jsdom@20.0.3
node_modules/jsdom
  jsdom@"^20.0.0" from jest-environment-jsdom@29.7.0
  node_modules/jest-environment-jsdom
    jest-environment-jsdom@"^29.7.0" from the root project

Environment

System:
    OS: macOS 14.3.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 18.18.2 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.6.5 - /usr/local/bin/pnpm
  npmPackages:
    jest: ^29.7.0 => 29.7.0
@mrazauskas
Copy link
Contributor

jest-environment-jsdom v29.7.0 ships jsdom@^20.0.0.

Reference: https://github.com/jestjs/jest/blob/v29.7.0/packages/jest-environment-jsdom/package.json

@SimenB
Copy link
Member

SimenB commented Mar 14, 2024

Jest v30 ships with 22 - upgrading is a breaking change.

@SimenB SimenB closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants