Packages

@testing-library/react

16.3.3 · 27 Aug 2026MIT89.5M / weekRepositoryHomepagenpmAtom feed

Your version

103 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 11.x
  2. 11.0.4

    13 Sep 2020
    • Trigger ongot-/onlostpointercapture when calling got-/lostpointercapture

  3. 11.0.3

    13 Sep 2020
    • Trigger onPointerEnter/Leave when calling pointerEnter/Leave

  4. 11.0.2

    3 Sep 2020
    • cleanup: remove unnecessary async/await

  5. 11.0.1

    3 Sep 2020
    • Update typings for cleanup

  6. 11.0.0

    2 Sep 2020
    • breaking

      Cleanup is now synchronous and wraps the unmounting process in act.

    • Use act to flush instead of custom implementation

  7. 10.x
  8. 10.4.9

    21 Aug 2020

    Only updates a dependency:@testing-library/dom 7.22.3

  9. 10.4.8

    5 Aug 2020
    • fireEvent: Make sure react dispatches focus/blur events

  10. 10.4.7

    15 Jul 2020
    • unmount: Flush useEffect cleanup functions syncronously

  11. 10.4.6

    13 Jul 2020
    • cleanup: remove scheduler code from flush-microtasks

  12. 10.4.5

    8 Jul 2020
    • flushMicroTasks: fallback to no scheduler

  13. 10.4.4

    5 Jul 2020
    • React next fails on build

  14. 10.4.3

    25 Jun 2020
    • cleanup: Cleanup should flush microtask queue after unmount

  15. 10.4.2

    24 Jun 2020
    • cleanup: microtask flushing now supports fake timers

  16. 10.4.1

    23 Jun 2020
    • Update @testing-library/dom to get a bug fix

  17. 10.4.0

    23 Jun 2020
    • Force update of @testing-library/dom

  18. 10.3.0

    18 Jun 2020
    • Update cheat sheet + added source file

  19. 10.2.1

    5 Jun 2020
  20. 10.2.0

    4 Jun 2020
    • Run cleanup() when test runner supports teardown()

  21. 10.1.0

    4 Jun 2020
    • TS: move typings from DefinitelyTyped into this repo (#690) (16f2f56), closes #688

  22. 10.0.6

    2 Jun 2020
    • Force update version of @testing-library/dom

  23. 10.0.5

    1 Jun 2020
    • fireEvent: automatically configure fireEvent to be wrapped in act

  24. 10.0.4

    30 Apr 2020
    • Upgrade all dependencies (and fix UMD build)

  25. 10.0.3

    20 Apr 2020
  26. 10.0.2

    30 Mar 2020
    • Bump types dependency

  27. 10.0.1

    13 Mar 2020
    • Support Node >=10

  28. 10.0.0

    12 Mar 2020
  29. 9.x
  30. 9.5.0

    4 Mar 2020
    • debug: accept the same arguments as prettyDOM (#596) (35522b1), closes #580

  31. 9.4.1

    22 Feb 2020
    • release: manually release a patch version

    • Make fireEvent mouseEnter/mouseLeave work with addEventListener (#588) (c5a7206), closes #577 #577

  32. 9.4.0

    13 Dec 2019
    • screen: add screen export

  33. 9.3.3

    11 Dec 2019
    • Support automatic types in pnpm installs

  34. 9.3.2

    4 Nov 2019
    • False positive warning about MessageChannel

  35. 9.3.1

    30 Oct 2019
    • Manually flush microtasks in afterEach

  36. 9.3.0

    3 Oct 2019
    • debug: allow debugging an array of containers

  37. 9.2.0

    26 Sep 2019
  38. 9.1.4

    3 Sep 2019
    • Console.error doesn't have to be a string in act.compat.js

  39. 9.1.3

    16 Aug 2019
    • Use apply for console error args when proxying

  40. 9.1.2

    15 Aug 2019
    • typescript: move typings to DefinitelyTyped

  41. 9.1.1

    12 Aug 2019
    • TS: act type

  42. 9.1.0

    10 Aug 2019
    • Add dont-cleanup-after-each.js

  43. 9.0.2

    9 Aug 2019
    • Restore cleanup-after-each and include a deprecation warning (8277b06), closes #433

  44. 9.0.1

    9 Aug 2019
    • cleanup-after-each: remove cleanup-after-each file.

  45. 9.0.0

    9 Aug 2019
    • breaking

      deps: If you were using debugDOM before, use prettyDOM instead. Note that debugDOM is different from debug which you get back from render. That is unchanged.

    • breaking

      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 to true or import @testing-library/react/pure instead of @testing-library/react.

    • breaking

      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.

  46. 8.x
  47. 8.0.9

    8 Aug 2019
    • Improve warning so people know they can upgrade to 16.9.0 now (#431) (c026650), closes #281

  48. 8.0.8

    6 Aug 2019
    • Make cleanup use async act

  49. 8.0.7

    26 Jul 2019
    • release: manually release a patch version (7e9f03c), closes #415

  50. 8.0.6

    23 Jul 2019
    • Async act detection

  51. 8.0.5

    12 Jul 2019
    • build output: the dist directory no longer includes tests

  52. 8.0.4

    25 Jun 2019
    • TS: use Queries from @testing-library/dom

  53. 8.0.3

    25 Jun 2019
    • TS: export Queries interface

  54. 8.0.2

    24 Jun 2019
    • Specify baseElement without container