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
You all did a great job with mocking two modules which are
firebase &
firebase-admin
KUDOS 👍 🏆
However, there is an assumption that the Auth module in the firebase module would be the same as the Auth module in firebase-admin but they are different i.e with different methods and properties
For more clarity:
This is the Auth module for Firebase Admin
This is the Auth module for Firebase
if you scroll to methods, you will see that the method list is different.
Steps to reproduce
Try to use the auth module from firebase-admin, e.g
Description
You all did a great job with mocking two modules which are
KUDOS 👍 🏆
However, there is an assumption that the Auth module in the firebase module would be the same as the Auth module in firebase-admin but they are different i.e with different methods and properties
For more clarity:
This is the Auth module for Firebase Admin
This is the Auth module for Firebase
if you scroll to methods, you will see that the method list is different.
Steps to reproduce
Try to use the
auth
module fromfirebase-admin
, e.gExpected result
createUser
built-in as part of theFakeAuth
classOR
overrides
objectActual result
TypeError: firebase_1.auth.createUser is not a function
Here is a link to a possible workaround solution
https://gist.github.com/johnkingzy/9097b5b65fc8a472ed51a35d7a0aba45
TLDR: I redefined the
FakeAuth
class to match the module structure forfirebase-admin
Environment
The text was updated successfully, but these errors were encountered: