Releases: testing-library/react-hooks-testing-library
Releases · testing-library/react-hooks-testing-library
v3.1.1
v3.1.0
Changes
- Added
dont-cleanup-after-each
test setup utlitity to disable auto cleanup to match the RTL version
v3.0.0
Changes
- Added global cleanup that unmounts test components to clean up residual effects between tests (#199)
- Auto register
afterEach
in supported test frameworks to auto run cleanup as per testing-library/react-testing-library#430 - Supports opt out via and environment variable opt out (
RHTL_SKIP_AUTO_CLEANUP=true
)
- Auto register
⚠️ Breaking Changes
- Most users won't be affected by the autoregistration of the auto-cleanup, but if anyone was relying on their effects persiting between tests then this will be a breaking change for them
v2.0.3
v2.0.2
v2.0.1
v2.0.0
Changes
waitForNextUpdate
now automatically wraps the promise in an asyncact
call, preventing the warning from #14
Breaking Changes
- Async
act
calls have increased the minimumreact-test-renderer
version to `16.9.0 - Opened the version range for
@types/react
and@types/react-test-renderer
to be a bit more lenient in an attempt to resolve #110 (let me know if this is still an issue).