Skip to content

Releases: testing-library/jest-dom

v6.1.5

30 Nov 19:41
b7b7c6a
Compare
Choose a tag to compare

6.1.5 (2023-11-30)

Bug Fixes

  • support uppercase custom props in toHaveStyle (#552) (b7b7c6a)

v6.1.4

12 Oct 04:58
44f1eab
Compare
Choose a tag to compare

6.1.4 (2023-10-12)

Bug Fixes

  • upgrade @adobe/css-tools to 4.3.1 to address vulnerability (#532) (44f1eab)

v6.1.3

06 Sep 02:56
5b492ac
Compare
Choose a tag to compare

6.1.3 (2023-09-06)

Bug Fixes

v6.1.2

24 Aug 08:09
b959a68
Compare
Choose a tag to compare

6.1.2 (2023-08-24)

Bug Fixes

  • bump @adobe/css-tools for ESM support (#525) (b959a68)

v6.1.1

23 Aug 15:19
853a3e5
Compare
Choose a tag to compare

6.1.1 (2023-08-23)

Bug Fixes

  • package.json: update main and module file paths (#523) (853a3e5)

v6.1.0

23 Aug 04:30
3d834bb
Compare
Choose a tag to compare

6.1.0 (2023-08-23)

Features

  • Publish ESM and CJS (#519)

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)