-
Notifications
You must be signed in to change notification settings - Fork 0
Bump @testing-library/jest-dom from 5.16.5 to 6.9.1 #316
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
base: main
Are you sure you want to change the base?
Bump @testing-library/jest-dom from 5.16.5 to 6.9.1 #316
Conversation
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.16.5 to 6.9.1. - [Release notes](https://github.com/testing-library/jest-dom/releases) - [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md) - [Commits](testing-library/jest-dom@v5.16.5...v6.9.1) --- updated-dependencies: - dependency-name: "@testing-library/jest-dom" dependency-version: 6.9.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Needs ReviewI recommend reviewing this upgrade before merging because it introduces a critical breaking change that will cause all tests to fail. The deprecated import path '@testing-library/jest-dom/extend-expect' is actively used in the test setup file and must be updated to '@testing-library/jest-dom'. Additionally, while the upgrade resolves two high-severity security vulnerabilities in transitive dependencies (including CVE-2021-3807 ReDoS vulnerability), the breaking change requires manual code modification to restore test functionality. The fix is straightforward and well-documented, but the change must be implemented before tests can run successfully. What we checked
Dependency UsageThis testing library serves as the global test infrastructure foundation for Mastodon's JavaScript frontend codebase, configured in the Jest test setup file to automatically extend all test assertions with DOM-specific matchers. The dependency enables quality assurance across the entire React-based social networking application by providing expressive assertions for testing UI components, user interactions, and accessibility features. This represents a centralized architectural pattern where a single setup file applies enhanced testing capabilities across all Jest test suites in the application.
Other Usages (1)These usages were analyzed but no breaking changes were detected: @testing-library/jest-dom
Changes@testing-library/jest-dom upgraded its @adobe/css-tools dependency to address a security vulnerability and deprecated the
View 37 more changes
References (5)[1]: Critical breaking change: Uses removed import path '@testing-library/jest-dom/extend-expect' which was removed in v6.0. This must be changed to import '@testing-library/jest-dom' to prevent all tests from failing.
[2]: Dependency upgraded from v5.16.5 to v6.9.1, introducing breaking changes requiring Jest 27+ (currently using Jest 29.5.0, which is compatible) Line 144 in 3fa2642
[3]: Jest configuration references test_setup.js which contains the deprecated import. This setup file is executed before all tests via setupFilesAfterEnv. Line 13 in 3fa2642
[4]: Official documentation of v6.0 breaking change: the /extend-expect import path was removed and replaced with a simpler direct import pattern (source link) [5]: Security fix: Upgrade addresses high-severity vulnerability by upgrading @adobe/css-tools to 4.3.1 (source link) fossabot analyzed this PR using static analysis and dependency research. |
Bumps @testing-library/jest-dom from 5.16.5 to 6.9.1.
Release notes
Sourced from
@testing-library/jest-dom's releases.... (truncated)
Commits
0ff8904fix: Fix undefinedNodeerror (nodejs) (#707)95f870afeat: Add .toAppearBefore/.toAppearAfter matcher (#702)d6663f5docs: add nossbigg as a contributor for code, and test (#703)779b712feat: add toBePartiallyPressed matcher (#203) (#692)e15f789docs: add kretajak as a contributor for code, and test (#691)cfdf8aefeat: add toBePressed matcher (#203) (#658)f00d94dchore: adddependebot.yml(#456)476c30brefactor: droplodashentirely (#676)fafd8cachore: add tests for Node 22 & 24 (#678)d9babb1docs: fix typo (#667)You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)