NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #853 most downloaded on npm
Custom jest matchers to test the state of the DOM
Last release 1 months ago
09 Aug 2026
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
85 releases · first in 2019
declare vitest as an optional peer dependency
add toContainAnyBy* and toContainOneBy* query matchers
One column per quarter.
add toContainAnyBy* and toContainOneBy* query matchers
Fix undefined Node error (nodejs)
Add .toAppearBefore/.toAppearAfter matcher
add toBePartiallyPressed matcher
6.7.0 (2025-08-13) Features add toBePressed matcher
6.6.4 (2025-07-26) Performance Improvements replace chalk with picocolors
add vitest import when extending vitest matchers
remove recursive type reference in vitest types
fix lodash import in to-have-selection.js
# 6.6.0 (2024-10-16) ### Features * implement toHaveSelection
toHaveValue: Asserting aria-valuenow
Drop peerDependencies from package.json
## 6.4.7 (2024-07-22) ### Bug Fixes * Type definition of toHaveClass
## 6.4.6 (2024-06-10) ### Bug Fixes * Support @starting-style
add js suffix to isEqualWith import
infra: codecoverage token addition
Updates role support for aria-required attribute in toBeRequired
Remove errant export of GetByRoleMatcher, fixing type checking in some TS configurations
Export type TestingLibraryMatchers from "./matchers"
# 6.4.0 (2024-01-30) ### Features * Add toHaveRole matcher
Support for regular expressions in toHaveClass
Standalone types for "./matchers" export and add Bun support
toHaveAccessibleDescription supports aria-description
Upgrade @adobe/css-tools to v4.3.2
support uppercase custom props in toHaveStyle
upgrade @adobe/css-tools to 4.3.1 to address vulnerability
## 6.1.3 (2023-09-06) ### Bug Fixes * proper @jest/globals import
bump @adobe/css-tools for ESM support
package.json: update main and module file paths
# 6.1.0 (2023-08-23) ### Features * Publish ESM and CJS
matchers type is making the global expect unsafe
local types, supporting jest, @jest/globals, vitest
extend-expect was not documented in the Readme, so this change should have minimal impact.
Users can now use the following import paths to automatically extend "expect" for their chosen test platform:
For example:
import '@testing-library/jest-dom/jest-globals'
Importing from one of the above paths will augment the appropriate matcher interface for the given test platform, assuming the import is done in a .ts file that is included in the user's tsconfig.json.
It's also (still) possible to import the matchers directly without side effects:
import * as matchers from '@testing-library/jest-dom/matchers'
New toHaveAccessibleErrorMessage better implementing the spec, deprecate toHaveErrorMessage
migrate ccs v3 to @adobe/css-tools v4
Support unenclosed inner text for details elements in to be visible
clarify toHaveFocus message when using .not
add custom element support to toBeDisabled
Improve toHaveClass error message format
# 5.16.0 (2021-12-03) ### Features * Update aria-query to 5.0.0
## 5.15.1 (2021-11-23) ### Bug Fixes * wrong deprecate error message
# 5.15.0 (2021-11-02) ### Features * import parse directly from css
Updates deprecated matchers info
toHaveAccessibleName and toHaveAccessibleDescription
# 5.13.0 (2021-06-03) ### Features * Add toHaveErrorMessage matcher
check for any Node in toHaveTextContent
normalize expected value in toContainHTML (#349) (21ad89b), closes #347
Ignore comment nodes in toBeEmptyDOMElement
Adds expected text for toContainHTML checks that fail
check equality in toHaveDisplayValue (fix #290)
Improved error messaging for toHaveFocus assertion
treat shadow DOM elements as in the document
do not explicitly depend on jest assertion utils
Changed toHaveStyle to use getPropertyValue instead of accessing the property directly
Suggest using toBeEmptyDOMElement instead of toBeEmpty
toHaveStyle: strictly match empty values (#276) (5bea350), closes #272
extend toBeChecked to support any role that's compatible
element not allowed to be disabled being returned as disabled
[toBeValid/toBeInvalid] Check aria-invalid on any element
Your coding agent can read these notes before it upgrades. Set up the MCP server →