You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming you are already in v4, migrating to v5 will be easy. If you are not in v4 yet, we recommend you to follow [the proper guide to migrate to it](docs/migration-guides/v4.md).
4
+
5
+
## Overview
6
+
7
+
- Support for ESLint v8
8
+
- Drop support for Node v10 - required node version is now `^12.22.0 || ^14.17.0 || >=16.0.0`. Node v10 was EOL'd in April 2021, and ESLint v8 dropped support for it too.
9
+
- Update dependencies
10
+
-`no-debug` is now called `no-debugging-utils`
11
+
-`no-render-in-setup` is now enabled by default in the Angular, React & Vue configs
12
+
-`no-unnecessary-act`'s `isStrict` option is now `true` by default
13
+
-`no-unnecessary-act` is now enabled by default in the React config
14
+
-`no-wait-for-multiple-assertions` is now enabled by default in all configs
15
+
-`no-wait-for-side-effects` is now enabled by default in all configs
16
+
-`no-wait-for-snapshot` is now enabled by default in all configs
17
+
-`prefer-presence-queries` is now enabled by default in all configs
18
+
-`prefer-query-by-disappearance` is now enabled by default in all configs
19
+
20
+
## Steps to upgrade
21
+
22
+
-`eslint-plugin-testing-library` supports both ESLint v7 and v8, so you are fine with either version
23
+
- Make sure you are using a compatible Node version, and update it if it's not the case
24
+
- Rename `testing-library/no-debug` to `testing-library/no-debugging-utils` if you were referencing it manually somewhere
25
+
- Be aware of new rules enabled in Shared Configs which can lead to new reported errors
0 commit comments