Skip to content

Releases: testing-library/dom-testing-library

v8.5.0

11 Sep 09:16
45830f5

Choose a tag to compare

8.5.0 (2021-09-11)

Features

  • config: Add unstable_advanceTimersWrapper (#1022) (45830f5)

v8.4.0

11 Sep 09:04
f55f19b

Choose a tag to compare

8.4.0 (2021-09-11)

Bug Fixes

  • Use syntax compatible with older TypeScript versions (#1026) (8311c8d)

Features

  • Add element type generic argument to queries (#1023) (f55f19b)

v8.3.0

07 Sep 22:54
ba8dfb8

Choose a tag to compare

8.3.0 (2021-09-07)

Features

v8.2.0

25 Aug 13:47
ff84a50

Choose a tag to compare

8.2.0 (2021-08-25)

Features

  • ByRole: Allow filter by aria-current state (#943) (fbbb29a)

v8.1.1

25 Aug 08:35
992f8b5

Choose a tag to compare

8.1.1 (2021-08-25)

Bug Fixes

  • support getting text of inputs of type reset (#1011) (54b9a5f)

v8.1.0

01 Jul 14:02
75197fe

Choose a tag to compare

8.1.0 (2021-07-01)

Features

v8.0.0

23 Jun 06:20
84ebc51

Choose a tag to compare

8.0.0 (2021-06-23)

Recommendations

  1. If you're using jest fake timers make sure you use modern timers
    jest 27:
    -jest.useFakeTimers('legacy')
    +jest.useFakeTimers('modern')
     // jest.config.js
    -"timers": "legacy",
    +"timers": "modern",
    jest 26:
    -jest.useFakeTimers()
    +jest.useFakeTimers('modern')
     // jest.config.js
    -"timers": "legacy",
    +"timers": "modern",

chore

BREAKING CHANGES

  • Remove deprecated waitFormDOMChange
  • Remove deprecated waitForElement
  • The timeout in waitFor(callback, { interval, timeout } ) now uses the same clock as interval. Previously timeout was always using the real clock while interval was using the global clock which could've been mocked out. For the old behavior I'd recommend waitFor(callback, { interval, timeout: Number.POSITIVE_INFINITY }) and rely on your test runner to timeout considering real timers.
  • <script />, <style /> and comment nodes are now ignored by default in prettyDOM .If you whish to return to the old behavior, use a custom filterNode function. In this case prettyDOM(element, { filterNode: () => true }).
  • node 10 is no longer supported. It reached its end-of-life on 30.04.2021.

v8.0.0-alpha.7

20 Jun 08:13
5b15f6f

Choose a tag to compare

v8.0.0-alpha.7 Pre-release
Pre-release

8.0.0-alpha.7 (2021-06-20)

Bug Fixes

v8.0.0-alpha.6

12 Jun 09:42
fa3b91c

Choose a tag to compare

v8.0.0-alpha.6 Pre-release
Pre-release

8.0.0-alpha.6 (2021-06-12)

Features

BREAKING CHANGES

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

v8.0.0-alpha.5

11 Jun 20:51
9410e11

Choose a tag to compare

v8.0.0-alpha.5 Pre-release
Pre-release

8.0.0-alpha.5 (2021-06-11)

Features