# jest-dom: what changed from 6 to 7 - Product: jest-dom (https://whatsnew.fyi/product/testing-library-jest-dom) - Vendor: Testing Library - Range: changelog entries numbered after v6.10.0 up to and including v7.0.1, stable releases only - Entries below: 2 releases (newest first) - Resolved: 6 is v6.10.0 and 7 is v7.0.1, the newest stable release of each major we track - Carrying security changes: 0 · CVEs mentioned: 0 · Mentioning breaking changes: 1 · Removing or deprecating something: 0 - Page: https://whatsnew.fyi/product/testing-library-jest-dom/compare/6...7 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. ## What changed (4 changes, grouped by kind) ### Added #### v7.0.0 (2026-07-20) - add toContainAnyBy* and toContainOneBy* query matchers ### Changed #### v7.0.0 (2026-07-20) - @testing-library/dom is now a required peer dependency - The minimum supported Node.js version is now 22 ### Fixed #### v7.0.1 (2026-08-09) - declare vitest as an optional peer dependency ## Release notes ### v7.0.1 - Date: 2026-08-09 - Version: v7.0.1 - Original notes: https://github.com/testing-library/jest-dom/releases/tag/v7.0.1 - Permalink: https://whatsnew.fyi/product/testing-library-jest-dom/releases/v7.0.1 - **fixed** — declare vitest as an optional peer dependency ##### [7.0.1](https://github.com/testing-library/jest-dom/compare/v7.0.0...v7.0.1) (2026-08-09) ###### Bug Fixes * declare vitest as an optional peer dependency ([#733](https://github.com/testing-library/jest-dom/issues/733)) ([3782c78](https://github.com/testing-library/jest-dom/commit/3782c78b3dc9824675afe0cb8f1722f8c96f494d)) ### v7.0.0 - Date: 2026-07-20 - Version: v7.0.0 - Original notes: https://github.com/testing-library/jest-dom/releases/tag/v7.0.0 - Permalink: https://whatsnew.fyi/product/testing-library-jest-dom/releases/v7.0.0 - **added** — add toContainAnyBy* and toContainOneBy* query matchers - **changed** — @testing-library/dom is now a required peer dependency - **changed** — The minimum supported Node.js version is now 22 #### [7.0.0](https://github.com/testing-library/jest-dom/compare/v6.10.0...v7.0.0) (2026-07-20) ###### Features * add toContainAnyBy* and toContainOneBy* query matchers ([1e39089](https://github.com/testing-library/jest-dom/commit/1e39089d850408a583c83495d00d8aa27078933f)) ###### BREAKING CHANGES * @testing-library/dom is now a required peer dependency. The minimum supported Node.js version is now 22. Repaired release for https://github.com/testing-library/jest-dom/pull/731