NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1021 most downloaded on npm
Simple and complete React DOM testing utilities that encourage good testing practices.
Last release 21 days ago
27 Aug 2026
Release timing varies
gaps range from 8 days to 9 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
123 releases · first in 2019
import pretty-format from @testing-library/dom
One column per quarter.
bump @testing-library/dom to v7.26.0
Trigger ongot-/onlostpointercapture when calling got-/lostpointercapture
Trigger onPointerEnter/Leave when calling pointerEnter/Leave
cleanup: remove unnecessary async/await
## 11.0.1 (2020-09-03) ### Bug Fixes * Update typings for cleanup
use act to flush instead of custom implementation
use act to flush instead of custom implementation
act.Bump @testing-library/dom to 7.22.3
fireEvent: Make sure react dispatches focus/blur events
unmount: Flush useEffect cleanup functions syncronously
cleanup: remove scheduler code from flush-microtasks
flushMicroTasks: fallback to no scheduler
## 10.4.4 (2020-07-05) ### Bug Fixes * React next fails on build
cleanup: Cleanup should flush microtask queue after unmount
cleanup: microtask flushing now supports fake timers
update @testing-library/dom to get a bug fix
force update of @testing-library/dom
Nothing published for this version
Nothing published for this version
update cheat sheet + added source file
Nothing published for this version
TS: add type defs file for pure (#696) (4bd4497), closes #695
run cleanup() when test runner supports teardown()
TS: move typings from DefinitelyTyped into this repo (#690) (16f2f56), closes #688
force update version of @testing-library/dom
fireEvent: automatically configure fireEvent to be wrapped in act
upgrade all dependencies (and fix UMD build)
restore this when requiring timers (#644) (59a2de1), closes #614
## 10.0.2 (2020-03-30) ### Bug Fixes * Bump types dependency
## 10.0.1 (2020-03-13) ### Bug Fixes * support Node >=10
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 y…
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.
Node 10 or greater is required. Node 8 is out of LTS (#576) (fccc2cf), closes #575
cleanup-after-each.jsThis file which did nothing but log a warning to the console (#598) (7942f68)
- 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).
remove deprecated cleanup-after-each
@testing-library/react/cleanup-after-each which is deprecated and hasn't done anything for many versions.The latest version of DOM Testing Library has several breaking changes you will want to review the changelog of DOM Testing Library to ensure you are…
debug: accept the same arguments as prettyDOM (#596) (35522b1), closes #580
# 9.4.0 (2019-12-13) ### Features * screen: add screen export
support automatic types in pnpm installs
False positive warning about MessageChannel
manually flush microtasks in afterEach
debug: allow debugging an array of containers
add pure bundle build (#489) (594f858), closes #486
console.error doesn't have to be a string in act.compat.js
use apply for console error args when proxying
typescript: move typings to DefinitelyTyped
Nothing published for this version
## 9.1.1 (2019-08-12) ### Bug Fixes * TS: act type
# 9.1.0 (2019-08-10) ### Features * add dont-cleanup-after-each.js
restore cleanup-after-each and include a deprecation warning (8277b06), closes #433
cleanup-after-each: remove cleanup-after-each file.
cleanup: automatically cleanup if afterEach is detected (#430) (e2d2572), closes #428
debugDOM before, use prettyDOM instead. Note that debugDOM is different from debug which you get back from render. That is unchanged.RTL_SKIP_AUTO_CLEANUP set to true or import @testing-library/react/pure instead of @testing-library/react.import '@testing-library/react/cleanup-after-each' then you need to remove that. It's happening automatically now.improve warning so people know they can upgrade to 16.9.0 now (#431) (c026650), closes #281
## 8.0.8 (2019-08-06) ### Bug Fixes * make cleanup use async act
release: manually release a patch version (7e9f03c), closes #415
## 8.0.6 (2019-07-23) ### Bug Fixes * async act detection
build output: the dist directory no longer includes tests
TS: use Queries from @testing-library/dom
## 8.0.3 (2019-06-25) ### Bug Fixes * TS: export Queries interface
Specify baseElement without container
Your coding agent can read these notes before it upgrades. Set up the MCP server →