@testing-library/react
16.3.3 · 27 Aug 2026MIT89.5M / weekRepositoryHomepagenpmAtom feed
10.4.9 is the newest release of 10.x.
In short
1 breaking2 new
- breaking
The latest version of DOM Testing Library has several breaking changes you will want to review the changelog of DOM Testing Library v7.0.0 to ensure you are unaffected.
Release note
Features
Flush microtasks in cleanup
Update
@testing-library/dom
Breaking changes
Update DOM Testing Library
The latest version of DOM Testing Library has several breaking changes you will want to review the changelog of DOM Testing Library v7.0.0 to ensure you are unaffected.
Drop Node 8
Node 10 or greater is required. Node 8 is out of LTS (#576) (fccc2cf), closes #575
remove deprecated cleanup-after-each.js
This file which did nothing but log a warning to the console
- import '@testing-library/react/cleanup-after-each' + // nothing! Just remove it
As a general reminder, you should NOT need to use cleanup at all as this is done automatically for you (unless you're using @testing-library/react/pure in which case you know what you're doing... keep using cleanup).