Skip to content

Releases: testing-library/eslint-plugin-testing-library

v4.1.1

21 Apr 19:50
43a14a2
Compare
Choose a tag to compare

4.1.1 (2021-04-21)

Bug Fixes

v4.1.0

19 Apr 07:46
a8d2017
Compare
Choose a tag to compare

4.1.0 (2021-04-19)

Features

  • new shared setting for restricting Aggressive Queries Reporting: testing-library/custom-queries (#344) (a8d2017), closes #335
  • new "off" option for all shared settings to disable related Aggressive Reporting mechanism (#344) (a8d2017), closes #335

v4.0.2

16 Apr 10:34
1c4391c
Compare
Choose a tag to compare

4.0.2 (2021-04-16)

Bug Fixes

  • prefer-screen-queries: avoid reporting custom queries (#342) (1c4391c), closes #340

v4.0.1

14 Apr 07:34
19947ef
Compare
Choose a tag to compare

4.0.1 (2021-04-14)

Bug Fixes

  • no-node-access: skip reporting files without Testing Library import (#338) (19947ef), closes #334

v4.0.0

11 Apr 18:13
Compare
Choose a tag to compare

4.0.0 (2021-04-11)

Overview

eslint-plugin-testing-library v4 brings the new Aggressive Reporting (an advanced mechanism to drastically improve reporting things related to Testing Library), 7 new rules, Shareable Configs updates, more consistent and flexible detection, and tons of bug fixes. You can follow this migrating to v4 guide.

BREAKING CHANGES

  • Minimum ESLint version required is v7.5. Support from v5.X to v7.5 has been dropped
  • recommended Shareable Config has been renamed to dom
  • no-promise-in-fire-event rule enabled in dom, angular, react and vue Shareable Configs
  • no-wait-for-empty-callback rule enabled in dom, angular, react and vue Shareable Configs
  • prefer-screen-queries rule enabled in dom, angular, react and vue Shareable Configs
  • no-container rule enabled in angular, react and vue Shareable Configs
  • no-node-access rule enabled in angular, react and vue Shareable Configs
  • render-result-naming-convention rule enabled in angular, react and vue Shareable Configs
  • no-debug rule changed from "warning" to "error" in angular, react and vue Shareable Configs
  • prefer-explicit-assert: option customQueryNames has been removed
  • no-debug: option renderFunctions has been removed
  • no-render-in-setup: option renderFunctions has been removed

Bug Fixes

  • all rules detect things related to Testing Library (wrappers, variable references, custom imports, renamed utils) better and more consistently
  • await-async-query: detect wrappers around async queries properly (#260)
  • await-async-utils: detect wrappers around async utils properly (#263)
  • await-fire-event: detect wrappers around fire event properly (#265)
  • no-await-sync-events: report type and keyboard methods with 0 delay (#302)
  • no-debug: detect wrappers around debug properly (#295)
  • prefer-screen-queries: ignore queries coming from non-reportable renders
  • prefer-screen-queries: improve error message (#320)

Features

  • new Aggressive Reporting mechanism for detecting Testing Library imports, renders, utils, and queries (#237, #252, #260)
  • new rule no-container (#177, #295)
  • new rule render-result-naming-convention (#200, #280, #282)
  • new rule prefer-user-event (#192, #251)
  • new rule no-promise-in-fire-event (#180, #266)
  • new rule no-wait-for-side-effects (#196, #300)
  • new rule no-node-access (#190, #237)
  • new rule no-wait-for-multiple-assertions (#189, #301)
  • new shared setting testing-library/utils-module (#239)
  • new shared setting testing-library/custom-renders (#280, #282)

Contributors

Huge thanks to @nickmccurdy @thebinaryfelix @timdeschryver @gndelia @renatoagds @MichaelDeBoey @thomaslombart for your contributions of all kind! v4 wouldn't be possible without you ❤️

v4.0.0-beta.6

10 Apr 13:27
20027f4
Compare
Choose a tag to compare
v4.0.0-beta.6 Pre-release
Pre-release

4.0.0-beta.6 (2021-04-10)

Bug Fixes

v4.0.0-beta.5

05 Apr 14:04
66df731
Compare
Choose a tag to compare
v4.0.0-beta.5 Pre-release
Pre-release

4.0.0-beta.5 (2021-04-05)

Bug Fixes

v4.0.0-beta.4

04 Apr 15:46
fd81fc5
Compare
Choose a tag to compare
v4.0.0-beta.4 Pre-release
Pre-release

4.0.0-beta.4 (2021-04-04)

Bug Fixes

  • prefer-user-event: format list of userEvent methods correctly (#311) (fd81fc5), closes #310

v4.0.0-beta.3

03 Apr 16:36
eaca948
Compare
Choose a tag to compare
v4.0.0-beta.3 Pre-release
Pre-release

4.0.0-beta.3 (2021-04-03)

Bug Fixes

  • enable TS strict mode (abfe5e8)
  • guard against null deepest identifier node (c176c2a)
  • guard against null property identifier node (83f27d8)
  • remove closing comment leftover (751889b)
  • remove wrong boolean check for detection (c20dbb9)

v4.0.0-beta.2

03 Apr 10:02
7e9d5c5
Compare
Choose a tag to compare
v4.0.0-beta.2 Pre-release
Pre-release

4.0.0-beta.2 (2021-04-03)

Bug Fixes

  • first round of bugfixes for v4 (7e9d5c5), closes #307 #304
  • await-async-utils: reference correct node name (a8c1fe4)
  • no-await-sync-query: avoid false positive from parent func (cac6670)
  • no-wait-for-side-effects: report on each side effect node (93b81f5)
  • prefer-find-by: simplify error message (82124af)

Features

  • no-wait-for-multiple-assertions: report assertions (98448bb)