Skip to content

[Snyk] Upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0 - #26

Open
mhill-os wants to merge 4 commits into
mainfrom
snyk-upgrade-d4dc2efe8573556df5e1e83d496b4f89
Open

[Snyk] Upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0#26
mhill-os wants to merge 4 commits into
mainfrom
snyk-upgrade-d4dc2efe8573556df5e1e83d496b4f89

Conversation

@mhill-os

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 34 versions ahead of your current version.

  • The recommended version was released 21 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ADOBECSSTOOLS-6096077
300 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ADOBECSSTOOLS-5871286
300 No Known Exploit

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.

Release notes
Package name: @testing-library/jest-dom
  • 7.0.0 - 2026-07-20

    7.0.0 (2026-07-20)

    Features

    • add toContainAnyBy* and toContainOneBy* query matchers (1e39089)

    BREAKING CHANGES

    • @ testing-library/dom is now a required peer dependency. The minimum supported
      Node.js version is now 22.

    Repaired release for #731

  • 6.10.0 - 2026-07-20

    6.10.0 (2026-07-20)

    Features

    • add toContainAnyBy* and toContainOneBy* query matchers (#731) (cae44df)
  • 6.9.1 - 2025-10-01

    6.9.1 (2025-10-01)

    Bug Fixes

  • 6.9.0 - 2025-09-30

    6.9.0 (2025-09-30)

    Features

    • Add .toAppearBefore/.toAppearAfter matcher (#702) (95f870a)
  • 6.8.0 - 2025-08-20

    6.8.0 (2025-08-20)

    Features

  • 6.7.0 - 2025-08-13

    6.7.0 (2025-08-13)

    Features

  • 6.6.4 - 2025-07-26

    6.6.4 (2025-07-26)

    Performance Improvements

  • 6.6.3 - 2024-10-31

    6.6.3 (2024-10-31)

    Bug Fixes

    • add vitest import when extending vitest matchers (#646) (5ba0156)
  • 6.6.2 - 2024-10-17

    6.6.2 (2024-10-17)

    Bug Fixes

    • remove recursive type reference in vitest types (#636) (4468378)
  • 6.6.1 - 2024-10-16

    6.6.1 (2024-10-16)

    Bug Fixes

    • fix lodash import in to-have-selection.js (#642) (ced792e)
  • 6.6.0 - 2024-10-16
  • 6.5.0 - 2024-08-23
  • 6.4.8 - 2024-07-23
  • 6.4.7 - 2024-07-22
  • 6.4.6 - 2024-06-10
  • 6.4.5 - 2024-05-03
  • 6.4.4 - 2024-05-03
  • 6.4.3 - 2024-05-03
  • 6.4.2 - 2024-02-05
  • 6.4.1 - 2024-02-01
  • 6.4.0 - 2024-01-30
  • 6.3.0 - 2024-01-24
  • 6.2.1 - 2024-01-22
  • 6.2.0 - 2024-01-03
  • 6.1.6 - 2023-12-27
  • 6.1.5 - 2023-11-30
  • 6.1.4 - 2023-10-12
  • 6.1.3 - 2023-09-06
  • 6.1.2 - 2023-08-24
  • 6.1.1 - 2023-08-23
  • 6.1.0 - 2023-08-23
  • 6.0.1 - 2023-08-18
  • 6.0.0 - 2023-08-13
  • 5.17.0 - 2023-07-18
  • 5.16.5 - 2022-08-04
from @testing-library/jest-dom GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0.

See this package in npm:
@testing-library/jest-dom

See this project in Snyk:
https://app.eu.snyk.io/org/777fa588-a023-437a-b50b-75119de43f30/project/38f8055e-bb11-41a1-b814-3a85785bed9a?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr
@mhill-os

Copy link
Copy Markdown
Author

Merge Risk: High

This major upgrade from v5 to v7 introduces significant breaking changes that require configuration and environment updates.

Breaking Changes in v6.0.0

  • Matcher Imports: The primary breaking change is that matchers are no longer automatically extended. The import '@testing-library/jest-dom/extend-expect' entry point has been removed. You must now import the matchers in your Jest setup file (e.g., setupTests.js) using the new entry point.

Breaking Changes in v7.0.0

  • Node.js Version: Support for Node.js versions below 22 has been dropped.
  • Peer Dependency: @testing-library/dom is now a required peer dependency and must be installed explicitly.

Recommendation:

  1. Update Jest Setup: In your Jest setup file, change your import from import '@testing-library/jest-dom/extend-expect' to import '@testing-library/jest-dom'.
  2. Install Peer Dependency: Run npm install @testing-library/dom or yarn add @testing-library/dom.
  3. Verify Environment: Ensure your development and CI/CD environments are using Node.js v22 or newer.

Source: GitHub Releases

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@mhill-os

mhill-os commented Aug 11, 2026

Copy link
Copy Markdown
Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Snyk has created this PR to upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0.

See this package in npm:
@testing-library/jest-dom

See this project in Snyk:
https://app.eu.snyk.io/org/777fa588-a023-437a-b50b-75119de43f30/project/38f8055e-bb11-41a1-b814-3a85785bed9a?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0.

See this package in npm:
@testing-library/jest-dom

See this project in Snyk:
https://app.eu.snyk.io/org/777fa588-a023-437a-b50b-75119de43f30/project/38f8055e-bb11-41a1-b814-3a85785bed9a?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade @testing-library/jest-dom from 5.16.5 to 7.0.0.

See this package in npm:
@testing-library/jest-dom

See this project in Snyk:
https://app.eu.snyk.io/org/777fa588-a023-437a-b50b-75119de43f30/project/38f8055e-bb11-41a1-b814-3a85785bed9a?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr
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