[UI] Consider migrating from enzyme to @testing-library/react #2732
Labels
area/engprod
area/frontend
area/testing
priority/p2
status/triaged
Whether the issue has been explicitly triaged
Part of #2407
This is an issue collector for problems we meet when using enzyme:
Different behavior of setState comparing to react:(turned out this was not the actual cause)setState
is called synchronously from event handler enzymejs/enzyme#1608I got one test failing because of the nuance difference of setState behavior in tests. This is very frustrating because code runs well in a real app, but it breaks in tests.
/area engprod
/area frontend
The text was updated successfully, but these errors were encountered: