Skip to content

Releases: testing-library/dom-testing-library

v8.0.0

23 Jun 06:20
84ebc51
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
v8.0.0-alpha.5 Pre-release
Pre-release

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

Features

v8.0.0-alpha.4

08 Jun 09:49
532106b
Compare
Choose a tag to compare
v8.0.0-alpha.4 Pre-release
Pre-release

8.0.0-alpha.4 (2021-06-08)

Features

BREAKING CHANGES

  • Remove deprecated waitForElement

v8.0.0-alpha.3

08 Jun 07:41
c9748e9
Compare
Choose a tag to compare
v8.0.0-alpha.3 Pre-release
Pre-release

8.0.0-alpha.3 (2021-06-08)

Bug Fixes

v8.0.0-alpha.2

03 Jun 14:01
ce06299
Compare
Choose a tag to compare
v8.0.0-alpha.2 Pre-release
Pre-release

8.0.0-alpha.2 (2021-06-03)

Bug Fixes

v8.0.0-alpha.1

03 Jun 12:31
3ae2702
Compare
Choose a tag to compare
v8.0.0-alpha.1 Pre-release
Pre-release

8.0.0-alpha.1 (2021-06-03)

Bug Fixes

BREAKING CHANGES

  • Remove deprecated waitFormDOMChange
  • 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.PositiveInfinity }) and rely on your test runner to timeout considering real timers.

v7.31.2

03 Jun 09:30
56a4c75
Compare
Choose a tag to compare

7.31.2 (2021-06-03)

Bug Fixes

v7.31.1

03 Jun 09:26
86fb094
Compare
Choose a tag to compare

7.31.1 (2021-06-03)

Bug Fixes