You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you give an example of what you mean? Note that in the current tests a bunch of HOCs are tested implicitly (eg. Redux's connect or React Router's withRouter).
If you meant testing a custom HOC separately, it might not be the right fit for this project in my opinion. The current examples are testing components from the user's perspective (see philosophy of react-testing-library), so I'd consider a HOC an implementation detail in most cases.
Thanks for the great examples, those are very helpful.
Can you please add an example for HOC.
The text was updated successfully, but these errors were encountered: