Enzyme is no longer maintained, and there's not (and won't be) an official adapter for React 18, which makes tests run in React 17 mode with some warnings.
React testing library is not a drop-in replacement, and is more focused on integration tests than unit tests, with no option for shallow rendering.
We should migrate some tests as POC, and start writing new ones with the new library.
Then, we should progressively migrate the rest as they need to be edited.
Enzyme is no longer maintained, and there's not (and won't be) an official adapter for React 18, which makes tests run in React 17 mode with some warnings.
React testing library is not a drop-in replacement, and is more focused on integration tests than unit tests, with no option for shallow rendering.
We should migrate some tests as POC, and start writing new ones with the new library.
Then, we should progressively migrate the rest as they need to be edited.