github testing-library/react-hooks-testing-library v3.0.0

latest releases: v8.0.1, v8.0.0, v8.0.0-alpha.1...
4 years ago

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)

⚠️ 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

Don't miss a new react-hooks-testing-library release

NewReleases is sending notifications on new releases.