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 using both AsyncStorage and useAsyncStorage in my application but it turns out there is no mock implementation for 'useAsyncStorage` and I'm getting an error
is there a way i can fix this without switching my code to the AsyncStorage
The text was updated successfully, but these errors were encountered:
When you want to test based on it returning some example data then adjust jest.fn() to jest.mockReturnValue({...data}). Should be enough for you to continue writing your tests :)
I'm using both
AsyncStorage
anduseAsyncStorage
in my application but it turns out there is no mock implementation for 'useAsyncStorage` and I'm getting an erroris there a way i can fix this without switching my code to the
AsyncStorage
The text was updated successfully, but these errors were encountered: