# What changed in @testing-library/jest-dom

> 5 changes in @testing-library/jest-dom 7 from its official release notes, upgrade guides and advisories: 2 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-17. HTML: https://unstale.sh/npm/@testing-library/jest-dom/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @testing-library/jest-dom 7

### Breaking changes

- The minimum supported Node.js version is now 22. (7.0.0) — [release notes](https://github.com/testing-library/jest-dom/releases/tag/v7.0.0)
- Now required as a peer dependency. (7.0.0) — [release notes](https://github.com/testing-library/jest-dom/releases/tag/v7.0.0)

### New APIs and options

- Adds the toContainAnyBy* query matchers. (6.10.0, 7.0.0) — [release notes](https://github.com/testing-library/jest-dom/releases/tag/v7.0.0), [release notes](https://github.com/testing-library/jest-dom/releases/tag/v6.10.0)
- Adds the toContainOneBy* query matchers. (6.10.0, 7.0.0) — [release notes](https://github.com/testing-library/jest-dom/releases/tag/v7.0.0), [release notes](https://github.com/testing-library/jest-dom/releases/tag/v6.10.0)

### Fixes and other changes

- Declare vitest as an optional peer dependency. (7.0.1) — [release notes](https://github.com/testing-library/jest-dom/releases/tag/v7.0.1)
