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
Despite the name, firebase_auth_mocks tries to fake as much as possible as you did so well in #91 (thanks btw!), so we don't want to use Mockito's pattern of mocking custom values.
Btw we don't export MockUserCredential and other custom implementations of the Firestore API because unit tests should use the public Firestore API as much as possible.
Currently, if I want to mock the method
User.linkWithProvider
, which returns aUserCredential
, I have to implement my own mock for UserCredential.I'd prefer to simply re-use your implementation so I can have something like the following:
Any reason why
MockUserCredential
shouldn't be exported and made available?The text was updated successfully, but these errors were encountered: