Awesome Open Source
Awesome Open Source

Firebase Mock Build Status

Firebase Mock extends mockfirebase to provide support for the following Firebase Javascript SDKS:


npm install firebase-mock --save-dev

Follow the steps in the Setup Tutorial to create a mock SDK to be used in your tests. Then follow one of the tutorials below based on your testing framework:


Firebase Mock supports the client-side JavaScript API and server-side Admin API plus a small set of utility methods documented fully in the API Reference. Rather than make a server call that is actually asynchronous, Firebase Mock allows you to either trigger callbacks synchronously or asynchronously with a specified delay (ref.flush).


Client (firebase)

Admin (firebase-admin)

Functions (firebase-functions)


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,368
testing (960
firebase (492
unit-testing (188
mock (179
mocking (106
firebase-auth (76
firebase-database (63
firebase-storage (32
firebase-firestore (30
mocks (27
firebase-functions (25