Move remaining enzyme tests to @testing-library/react
As (belated) follow-up to #2760, we should complete the test migration and get rid of enzyme, which has not been updated sinze 2019, and which is blocking our overall update from React 16 onwards.
Some examples of tests using @testing-library/react are available in EditField.test.tsx and Terms.test.js.
@eemeli I am also working on this issue with #3768
hey @eemeli, i was working on https://github.com/mozilla/pontoon/issues/3768, and i think this task (3767) and (3768) should go side by side, and if we decide to go with this approach i think we can handle the issue which i am facing too https://github.com/mozilla/pontoon/issues/3768#issuecomment-3620433833
Yeah, it may well be easier to first port tests from Enzyme to testing-library, and only then from Jest to Vitest.
ohk, i'll get started then, can you assign this task to me?