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. 16.x · latest line
  2. 16.3.3

    27 Aug 2026
    • Avoid act() re-entrant when dispatching events

  3. 16.3.2

    19 Jan 2026
    • Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19

  4. 16.3.1

    15 Dec 2025
    • Switch to trusted publishing

  5. 16.3.0

    2 Apr 2025
    • Add bernardobelchior as a contributor for code, and doc

  6. 16.2.0

    15 Jan 2025
    • Add support for React error handlers

  7. 16.1.0

    5 Dec 2024
    • Add support for React 19

  8. 16.0.1

    29 Aug 2024
    • Add support for exactOptionalPropertyTypes in TypeScript

  9. 16.0.0

    3 Jun 2024
  10. 15.x
  11. 15.0.7

    7 May 2024
    • Ensure act is not any when React.act is not declared

  12. 15.0.6

    1 May 2024
    • Export new act when available

  13. 15.0.5

    26 Apr 2024
    • Stop restricting container option based on hydrate

  14. 15.0.4

    23 Apr 2024
    • Ensure renderHook options extend options for render

  15. 15.0.3

    23 Apr 2024
    • Don't raise TypeScript errors when hydating document

  16. 15.0.2

    13 Apr 2024
    • Improve legacyRoot error message

  17. 15.0.1

    11 Apr 2024
    • Stop using nullish coalescing

  18. 15.0.0

    10 Apr 2024
    • breaking

      Minimum supported Node.js version is 18.0

    • breaking

      New version of @testing-library/dom changes various roles. Check out the changed tests in 2c57055 to get an overview about what changed.

  19. 14.x
  20. 14.3.1

    11 Apr 2024
    • Stop using nullish coalescing

  21. 14.3.0

    8 Apr 2024
    • Add support for React 19 Canary

  22. 14.2.2

    19 Mar 2024
    • Remove unused types

  23. 14.2.1

    1 Feb 2024
    • Update types to support all possible react component return values

  24. 14.2.0

    30 Jan 2024
    • Add reactStrictMode option to enable strict mode render

  25. 14.1.2

    17 Nov 2023
    • Revert missing hooks warnings

  26. 14.1.1

    17 Nov 2023
  27. 14.1.0

    8 Nov 2023
    • Add warnings when globals are missing

  28. 14.0.0

    16 Feb 2023
  29. 13.x
  30. 13.4.0

    4 Sep 2022
    • renderHook: allow passing of all render options to renderHook

  31. 13.3.0

    28 May 2022
    • Use globalThis if available

  32. 13.2.0

    3 May 2022
    • Export RenderHookOptions type

  33. 13.1.1

    15 Apr 2022
    • TS: export interface RenderHookResult

  34. 13.1.0

    15 Apr 2022
    • Add renderHook

  35. 13.0.1

    11 Apr 2022
    • Specify a non-* version for @types/react-dom

  36. 13.0.0

    31 Mar 2022
    • breaking

      Drop support for React 17 and earlier. We'll use the new createRoot API by default which comes with a set of changes while also enabling support for concurrent features.
      To opt-out of this change you can use render(ui, { legacyRoot: true } ). But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.

    • Add support for React 18

  37. 12.x
  38. 12.1.5

    11 Apr 2022
    • Only supports React < 18

  39. 12.1.4

    9 Mar 2022
    • Match runtime type of baseElement in TypeScript types

  40. 12.1.3

    15 Feb 2022
  41. 12.1.2

    3 Oct 2021
    • render: Don't reject wrapper types based on statics

  42. 12.1.1

    27 Sep 2021
    • TS: make wrapper allow a simple function comp

  43. 12.1.0

    11 Sep 2021
    • Improve JSDocs for RenderOptions

  44. 12.0.0

    23 Jun 2021
    • removed

      Drop support for node 10

    • breaking

      Node 10 is no longer supported. It reached its end-of-life on 30.04.2021.

    • Bump testing-library/dom to v8 alpha

  45. 11.x
  46. 11.2.7

    14 May 2021
    • Guard against process not being defined

  47. 11.2.6

    30 Mar 2021
    • types: exclude tsconfig from types folder in publish flow

  48. 11.2.5

    2 Feb 2021
    • render: add default type for Queries parameter

  49. 11.2.4

    2 Feb 2021
    • render: Default to HTMLElement in returned container

  50. 11.2.3

    7 Jan 2021
    • Return type of unmount is void

  51. 11.2.2

    20 Nov 2020
    • dependencies: bump dom testing library

  52. 11.2.1

    19 Nov 2020
    • types: Allow all HTML and SVG elements in render.

  53. 11.2.0

    18 Nov 2020
    • Bump dom testing library

  54. 11.1.2

    11 Nov 2020
    • Import pretty-format from @testing-library/dom

  55. 11.1.1

    3 Nov 2020
    • Upgrade dependencies, typescript, @testing-library/dom etc

  56. 11.1.0

    14 Oct 2020

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