Releases: testing-library/react-testing-library
Releases · testing-library/react-testing-library
v9.1.1
v9.1.0
v9.0.2
v9.0.1
v9.0.0
9.0.0 (2019-08-09)
Features
- cleanup: automatically cleanup if afterEach is detected (#430) (e2d2572), closes #428
- deps: update @testing-library/dom to 6.0.0 (#430) (1dd6544)
BREAKING CHANGES
- deps: If you were using
debugDOM
before, useprettyDOM
instead. Note thatdebugDOM
is different fromdebug
which you get back fromrender
. That is unchanged. - cleanup: If your tests were not isolated before (and you referenced the same component between tests) then this change will break your tests. You should keep your tests isolated, but if you're unable/unwilling to do that right away, then you can either run your tests with the environment variable
RTL_SKIP_AUTO_CLEANUP
set totrue
or import@testing-library/react/pure
instead of@testing-library/react
. - cleanup-after-each: If any of your code has
import '@testing-library/react/cleanup-after-each'
then you need to remove that. It's happening automatically now.