Packages

@testing-library/jest-dom

8.0.0 · 19 Nov 2026MIT104.4M / weekRepositoryHomepagenpmAtom feed

Upgrading @testing-library/jest-dom From 5.17.0 to 7.0.1

34 releases in betweenevery note read

Other targets from 5.17.0Latest8.0.0
  1. 5.17.0yours
  2. 6.0.0major
  3. 5 releases
  4. 6.1.4security
  5. 7 releases
  6. 6.4.2breaking
  7. 17 releases
  8. 7.0.0major
  9. 7.0.1target

Before you upgrade

Tick each one off as you go
  • Breaking7.0.0
  • Breaking6.4.2
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0
  • Breaking6.0.0

Security

Release by release

  1. 7.0.1

    9 Aug 20261 fix
    • Fixed

      Declare vitest as an optional peer dependency

  2. 7.0.0

    Migration needed20 Jul 20261 new
    • Breaking

      @testing-library/dom is now a required peer dependency. The minimum supported Node.js version is now 22.

    • New

      Add toContainAnyBy* and toContainOneBy* query matchers

  3. 6.10.0nothing new or fixed in the note

  4. 6.9.1

    1 Oct 20251 fix
    • Fixed

      Fix undefined Node error (nodejs)

  5. 6.9.0

    30 Sep 20251 new
    • New

      Add .toAppearBefore/.toAppearAfter matcher

  6. 6.8.0

    20 Aug 20251 new
    • New

      Add toBePartiallyPressed matcher

  7. 6.7.0

    13 Aug 20251 new
    • New

      Add toBePressed matcher

  8. 6.6.4

    26 Jul 20251 new
    • New

      Replace chalk with picocolors

1 internal line (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.