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
As we start using the resource middleware more it could be useful to have a resource mock to use when testing. I'd imagine this could be similar to the createICacheMock that already exists. We could use such a mock when testing out some harder to mock out scenarios such as asynchronous resource calls or when testing for specific values such as when a value is returned bymeta() but isLoading is true.
Enhancement Resource middleware mock
As we start using the resource middleware more it could be useful to have a resource mock to use when testing. I'd imagine this could be similar to the
createICacheMock
that already exists. We could use such a mock when testing out some harder to mock out scenarios such as asynchronous resource calls or when testing for specific values such as when a value is returned bymeta()
butisLoading
istrue
.The resource mock could then be used like this:
The text was updated successfully, but these errors were encountered: