Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Aug 25, 2025

Bumps @testing-library/jest-dom from 5.11.8 to 6.8.0.

Release notes

Sourced from @​testing-library/jest-dom's releases.

v6.8.0

6.8.0 (2025-08-20)

Features

v6.7.0

6.7.0 (2025-08-13)

Features

v6.6.4

6.6.4 (2025-07-26)

Performance Improvements

v6.6.3

6.6.3 (2024-10-31)

Bug Fixes

  • add vitest import when extending vitest matchers (#646) (5ba0156)

v6.6.2

6.6.2 (2024-10-17)

Bug Fixes

  • remove recursive type reference in vitest types (#636) (4468378)

v6.6.1

6.6.1 (2024-10-16)

Bug Fixes

  • fix lodash import in to-have-selection.js (#642) (ced792e)

v6.6.0

6.6.0 (2024-10-16)

... (truncated)

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.11.8 to 6.8.0.
- [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.11.8...v6.8.0)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-version: 6.8.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 25, 2025
@netlify
Copy link

netlify bot commented Aug 25, 2025

Deploy Preview for stoic-agnesi-f48178 failed.

Name Link
🔨 Latest commit c2aa92e
🔍 Latest deploy log https://app.netlify.com/projects/stoic-agnesi-f48178/deploys/68acdffbfddca10008f2a89b

@fossabot
Copy link

fossabot bot commented Aug 25, 2025

Dependency Change Summary

@testing-library/jest-dom (5.11.8 → 6.8.0)

⚠️ Important Changes

The library fixes a security vulnerability by upgrading @adobe/css-tools to version 4.3.1. It adds a new toHaveAccessibleErrorMessage matcher that better implements accessibility specifications and deprecates the existing toHaveErrorMessage matcher.

View raw changes (1 security, 3 deprecations)
  • release notes (vv6.1.4): upgrade @adobe/css-tools to 4.3.1 to address vulnerability (#532) (44f1eab)
  • release notes (vv5.17.0): New toHaveAccessibleErrorMessage better implementing the spec, deprecate toHaveErrorMessage (#503) (d717c66)
  • release notes (vv5.15.1): wrong deprecate error message (#422) (dfcefa2)
  • release notes (vv5.14.1): Updates deprecated matchers info (#378) (fc9ce6d)

📦 Other Updates

This update adds several new matchers including toBePressed, toBePartiallyPressed, toHaveSelection, toHaveRole, and toHaveErrorMessage for more comprehensive DOM testing assertions. It also adds Vitest support with platform-specific import paths and improves TypeScript definitions while removing peer dependencies.

View all changes (12 features, 3 fixes, 40 other)
  • release notes (vv6.8.0): add toBePartiallyPressed matcher (#203) (#692) (779b712)
  • release notes (vv6.7.0): add toBePressed matcher (#203) (#658) (cfdf8ae)
  • release notes (vv6.6.3): add vitest import when extending vitest matchers (#646) (5ba0156)
  • release notes (vv6.6.0): implement toHaveSelection (#637) (9b14804)
  • release notes (vv6.4.4): infra: codecoverage token addition (#600) (f03a582)
  • release notes (vv6.4.0): Add toHaveRole matcher (#572) (f7dc673)
  • release notes (vv6.2.1): Standalone types for "./matchers" export and add Bun support (#566) (5675b86)
  • release notes (vv6.0.0): Added default import path for extending "expect" instance
  • release notes (vv6.0.0): Added new test platform-specific import paths for extending "expect" instance
  • release notes (vv6.0.0): Added new import paths to automatically extend "expect" for different test platforms
  • release notes (vv5.16.2): add custom element support to toBeDisabled (#368) (8162115)
  • release notes (vv5.13.0): Add toHaveErrorMessage matcher (#370) (217fdcc)
  • release notes (vv6.6.1): fix lodash import in to-have-selection.js (#642) (ced792e)
  • release notes (vv6.4.5): add js suffix to isEqualWith import (#599) (e8c8b13)
  • release notes (vv6.4.2): Remove errant export of GetByRoleMatcher, fixing type checking in some TS configurations (#575) (a93c0c4)
  • release notes (vv6.6.4): replace chalk with picocolors (#659) (707e647)
  • release notes (vv6.6.2): remove recursive type reference in vitest types (#636) (4468378)
  • release notes (vv6.5.0): toHaveValue: Asserting aria-valuenow (#479) (acbf416)
  • release notes (vv6.4.8): Drop peerDependencies from package.json (#610) (faf534b)
  • release notes (vv6.4.7): Type definition of toHaveClass (#611) (5cc6298)

Dependency Usage Analysis

The @testing-library/jest-dom package is used in 1 file within the codebase. This package provides custom Jest matchers for testing DOM elements, indicating the project uses Jest for testing with DOM-focused assertions.

Usage Locations

@testing-library/jest-dom - 1 usage across 1 file:

Impact Assessment - Action Required

The @testing-library/jest-dom upgrade contains a breaking change that removes the deprecated 'extend-expect' import mechanism, causing import errors in 1 file. The current import statement import '@testing-library/jest-dom/extend-expect' must be manually replaced with the new platform-specific import path. Additionally, the 'toHaveErrorMessage' matcher should be updated to use 'toHaveAccessibleErrorMessage' for better accessibility compliance.

Example Impact

@testing-library/jest-dom 5.11.8 → 6.8.0

src/setupTests.js:5
The upgrade removes the deprecated 'extend-expect' import mechanism. The current usage 'import '@testing-library/jest-dom/extend-expect'' is no longer valid and will cause import errors.

Fix: Replace the deprecated import with one of the new platform-specific imports: '@testing-library/jest-dom' for default Jest setup, '@testing-library/jest-dom/jest-globals' for @jest/globals, or '@testing-library/jest-dom/vitest' for Vitest.

Top Impacted Locations

  • 🔴 src/setupTests.js:5: Replace the deprecated import with one of the new platform-specific imports: '@testing-library/jest-dom' for default Jest setup, '@testing-library/jest-dom/jest-globals' for @jest/globals, or '@testing-library/jest-dom/vitest' for Vitest.

This comprehensive analysis uses AI to examine dependency changes, understand usage patterns, and assess the impact on your codebase.

@sonarqubecloud
Copy link

@deepsource-io
Copy link
Contributor

deepsource-io bot commented Aug 25, 2025

Here's the code health analysis summary for commits 6cefd48..c2aa92e. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant