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
I'm not particularly fond of the const hook = renderHook(someHook, arg1, arg2, arg3) interface. One of my design goals with this library is to use the hook like you would in your component. This means calling it yourself with the arguments you want ti to have.
An option I have considered would be do something like:
Describe the feature you'd like:
I think the renderHook interface is a bit clumbersome, especially when working with custom hooks with arguments.
Suggested implementation:
I have created a Typescript wrapper to simplify the unit testing code
Describe alternatives you've considered:
Would it be possible to include something like this in the library?
The text was updated successfully, but these errors were encountered: