dmurvihill / firebase-mock

Firebase mock library for writing unit tests
55 stars 21 forks source link

RTDB References Missing `get`, and `exists` methods #75

Open AmitMY opened 2 years ago

AmitMY commented 2 years ago

I've been trying to use this repository to test some RTDB code. However, it seems like references are missing get and exists 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.

dmurvihill commented 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.