Open AmitMY opened 2 years ago
The mock API is a bit out of date and get()
was added recently, so I'm not surprised you didn't find it.
I recommend using the new Firebase Local Emulator Suite for new projects. That project is officially maintained by Google. If you must use firebase-mock
, pull requests to add the missing methods are gratefully accepted.
I've been trying to use this repository to test some RTDB code. However, it seems like references are missing
get
andexists
methods.I do not see anyone else having this issue, so I'm wondering what can be done. These methods, are not called directly from my tests, but instead, I pass a reference to a function, and it might, for example, check if it
exists
.