pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Move remaining enzyme tests to @testing-library/react

Open eemeli opened this issue 3 months ago • 4 comments

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 avatar Sep 04 '25 15:09 eemeli

@eemeli I am also working on this issue with #3768

Raj-G07 avatar Sep 06 '25 18:09 Raj-G07

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

nishitmistry avatar Dec 08 '25 05:12 nishitmistry

Yeah, it may well be easier to first port tests from Enzyme to testing-library, and only then from Jest to Vitest.

eemeli avatar Dec 08 '25 15:12 eemeli

ohk, i'll get started then, can you assign this task to me?

nishitmistry avatar Dec 08 '25 15:12 nishitmistry