Skip to content

Releases: testing-library/react-hooks-testing-library

v3.1.1

27 Oct 10:02
Compare
Choose a tag to compare

Changes

  • Actually included dont-cleanup-after-each.js in the npm package (#208)

v3.1.0

17 Oct 05:55
Compare
Choose a tag to compare

Changes

  • Added dont-cleanup-after-each test setup utlitity to disable auto cleanup to match the RTL version

v3.0.0

16 Oct 21:53
Compare
Choose a tag to compare

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

v2.0.3

03 Oct 20:52
Compare
Choose a tag to compare

Changes

  • Updated docs to make peers dependencies more prevelent (#183)

v2.0.2

03 Oct 20:51
Compare
Choose a tag to compare

Changes

  • Moved type definitions to the DefinitelyTyped repo (#110)

v2.0.1

09 Aug 12:04
Compare
Choose a tag to compare

Changes

  • Forgot some references in the README

v2.0.0

09 Aug 11:35
Compare
Choose a tag to compare

Changes

  • waitForNextUpdate now automatically wraps the promise in an async act call, preventing the warning from #14

Breaking Changes

  • Async act calls have increased the minimum react-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).

v1.1.0

30 Jun 12:53
Compare
Choose a tag to compare

Changes

  • Export all typescript interfaces to reduce reliance on type inference (#111)

v1.0.4

22 Jun 04:11
Compare
Choose a tag to compare

Changes

  • Fixed typo in docs (#103)
  • Unpinned @types/react (#104, #105)

v1.0.3

21 Jun 11:17
Compare
Choose a tag to compare

Changes

  • Improved typings to be a bit clearer
  • Updated docs