Skip to content

Releases: testing-library/jest-dom

v6.0.1

18 Aug 05:28
bdb34f1
Compare
Choose a tag to compare

6.0.1 (2023-08-18)

Bug Fixes

  • matchers type is making the global expect unsafe (#513) (bdb34f1)

v6.0.0

13 Aug 16:32
4b764b9
Compare
Choose a tag to compare

6.0.0 (2023-08-13)

Features

  • local types, supporting jest, @jest/globals, vitest (#511) (4b764b9)

BREAKING CHANGES

  • Removes the extend-expect script. Users should use
    the default import path or one of the new test platform-specific
    paths to automatically extend the appropriate "expect" instance.

extend-expect was not documented in the Readme, so this change should
have minimal impact.

Users can now use the following import paths to automatically extend
"expect" for their chosen test platform:

  • @testing-library/jest-dom - jest (@types/jest)
  • @testing-library/jest-dom/jest-globals - @jest/globals
  • @testing-library/jest-dom/vitest - vitest

For example:

import '@testing-library/jest-dom/jest-globals'

Importing from one of the above paths will augment the appropriate
matcher interface for the given test platform, assuming the import
is done in a .ts file that is included in the user's tsconfig.json.

It's also (still) possible to import the matchers directly without
side effects:

import * as matchers from '@testing-library/jest-dom/matchers'

  • Update kcd-scripts
  • Drop node < 14

v5.17.0

18 Jul 12:50
d717c66
Compare
Choose a tag to compare

5.17.0 (2023-07-18)

Features

  • New toHaveAccessibleErrorMessage better implementing the spec, deprecate toHaveErrorMessage (#503) (d717c66)

v5.16.5

04 Aug 21:47
948d90f
Compare
Choose a tag to compare

5.16.5 (2022-08-04)

Bug Fixes

  • migrate ccs v3 to @adobe/css-tools v4 (#470) (948d90f)

v5.16.4

05 Apr 14:57
af18453
Compare
Choose a tag to compare

5.16.4 (2022-04-05)

Bug Fixes

  • Support unenclosed inner text for details elements in to be visible (#396) (af18453)

v5.16.3

24 Mar 13:01
6988a67
Compare
Choose a tag to compare

5.16.3 (2022-03-24)

Bug Fixes

  • clarify toHaveFocus message when using .not (#447) (6988a67)

v5.16.2

03 Feb 00:51
4d0ceeb
Compare
Choose a tag to compare

5.16.2 (2022-02-03)

Bug Fixes

  • add custom element support to toBeDisabled (#368) (8162115)

v5.16.1

06 Dec 12:06
a9beb47
Compare
Choose a tag to compare

5.16.1 (2021-12-06)

Bug Fixes

  • Improve toHaveClass error message format (#405) (a9beb47)

v5.16.0

03 Dec 21:10
de26c7a
Compare
Choose a tag to compare

5.16.0 (2021-12-03)

Features

v5.15.1

23 Nov 13:59
dfcefa2
Compare
Choose a tag to compare

5.15.1 (2021-11-23)

Bug Fixes