Skip to content

soumak77/firebase-mock

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d7216a1 · Sep 26, 2022
Sep 26, 2018
Mar 29, 2018
Sep 26, 2018
Sep 26, 2018
Aug 20, 2018
May 3, 2017
Aug 4, 2014
Mar 15, 2018
Aug 10, 2017
Sep 24, 2014
Aug 5, 2014
Apr 6, 2018
Mar 1, 2018
Sep 26, 2018
Mar 29, 2018
Sep 26, 2022
Sep 26, 2022

Repository files navigation

Firebase Mock Build Status

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

Setup

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:

API

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).

Tutorials

Client (firebase)

Functions (firebase-functions)

Alternatives