Skip to content

Dependency audit and upgrade as needed - #942

Merged
Dananji merged 1 commit into
mainfrom
release-dep-upgrades
Apr 28, 2026
Merged

Dependency audit and upgrade as needed#942
Dananji merged 1 commit into
mainfrom
release-dep-upgrades

Conversation

@Dananji

@Dananji Dananji commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #941

Changes in this PR:

  • remove react-compiler-runtime from dev dependencies, since the compiler runtime is built into React 19
  • update @types/react from the fixed 18.3.5 to ^19.0.0 to match React 19
  • upgrade @testing-library/jest-dom from v5 to v6
    • update jest.setup.js to import @testing-library/jest-dom directly, because the extend-expect sub-path was removed in v6
  • upgrade jest, babel-jest, and @types/jest from v26 (EOL) to v29
    In Jest 26, jsdom was the built-in default test environment and it simulated a browser DOM automatically, so window, document, etc. in unit tests were always available without any configuration. But, from jest 27;
    • the default testEnvironment was switched from jsdom to node - meaning tests run in a plain Node.js environment with no DOM by default, which requires setting testEnvironment: 'jest-environment-jsdom' in jest.config.js
    • jest-environment-jsdom was extracted into a separate package, so it must be explicitly installed

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay to updated dependencies! 🎉

@Dananji
Dananji merged commit 810dea8 into main Apr 28, 2026
4 checks passed
@Dananji
Dananji deleted the release-dep-upgrades branch April 28, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants