3 ms·
If you use shallow render for your unit tests, Enzyme is much much better than Test Utilities. Just to name a few reasons: - better event simulation - easier
by analyst74 10y ago
If you use shallow render for your unit tests, Enzyme is much much better than Test Utilities. Just to name a few reasons:
- better event simulation
- easier to update prop
- allow setting and getting state
- easier to refresh after triggering changes
- comprehensive selector support