Closed dpikt closed 7 years ago
It depends what you need to test. If you need the lifecycle events on the wrapped component, then mount
fits the bill. You can take a look at the tests for onLoad
to see this in action.
@davemcorwin Nice, looks pretty straightforward.
How would we go about this? Enzyme gives us a
mount
function that we can use to test lifecycle hooks, but this might be too complicated to be worth it.