|
| 1 | +# Guide: migrating to v6 |
| 2 | + |
| 3 | +If you are not on v5 yet, we recommend first following the [v5 migration guide](docs/migration-guides/v5.md). |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +- `prefer-wait-for` was removed |
| 8 | +- `await-fire-event` is now called `await-async-events` with support for an `eventModule` option with `userEvent` and/or `fireEvent` |
| 9 | +- `await-async-events` is now enabled by default for `fireEvent` in Vue and Marko shared configs |
| 10 | +- `await-async-events` is now enabled by default for `userEvent` in all shared configs |
| 11 | +- `await-async-query` is now called `await-async-queries` |
| 12 | +- `no-await-async-query` is now called `no-await-async-queries` |
| 13 | +- `no-render-in-setup` is now called `no-render-in-lifecycle` |
| 14 | +- `no-await-sync-events` is now enabled by default in React, Angular, and DOM shared configs |
| 15 | +- `no-manual-cleanup` is now enabled by default in React and Vue shared configs |
| 16 | +- `no-global-regexp-flag-in-query` is now enabled by default in all shared configs |
| 17 | +- `no-node-access` is now enabled by default in DOM shared config |
| 18 | +- `no-debugging-utils` now reports all debugging utility methods by default |
| 19 | +- `no-debugging-utils` now defaults to `warn` instead of `error` in all shared configs |
| 20 | + |
| 21 | +## Steps to upgrade |
| 22 | + |
| 23 | +- Removing `testing-library/prefer-wait-for` if you were referencing it manually somewhere |
| 24 | +- Renaming `testing-library/await-fire-event` to `testing-library/await-async-events` if you were referencing it manually somewhere |
| 25 | +- Renaming `testing-library/await-async-query` to `testing-library/await-async-queries` if you were referencing it manually somewhere |
| 26 | +- Renaming `testing-library/no-await-async-query` to `testing-library/no-await-async-queries` if you were referencing it manually somewhere |
| 27 | +- Renaming `testing-library/no-render-in-setup` to `testing-library/no-render-in-lifecycle` if you were referencing it manually somewhere |
| 28 | +- Being aware of new rules enabled or changed above in shared configs which can lead to newly reported errors |
0 commit comments