Firebase Mock extends mockfirebase to provide support for the following Firebase Javascript SDKS:
- https://github.com/firebase/firebase-js-sdk
- https://github.com/firebase/firebase-admin-node
npm install firebase-mock
Firebase Mock supports the normal Firebase API plus a small set of utility methods documented fully in the API Reference. Rather than make a server call that is actually asynchronous, MockFirebase allow you to either trigger callbacks synchronously or asynchronously with a specified delay (ref.flush
).