Need help with mockfirebase?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

katowulf
155 Stars 42 Forks 315 Commits 24 Opened issues

Description

Firebase mock library for writing unit tests (experimental)

Services available

!
?

Need anything else?

Contributors list

# 18,887
Angular
Postgre...
firebas...
angular...
210 commits
# 22,210
HTML
Google
Firebas...
TypeScr...
65 commits
# 4,371
exec
ecmascr...
test-fr...
async-f...
5 commits
# 241,103
Ember
HTML
Shell
Firebas...
1 commit
# 140,306
Firebas...
firebas...
TypeScr...
HTML
1 commit
# 293,791
CSS
HTML
Node.js
Angular
1 commit
# 581,181
JavaScr...
Firebas...
firebas...
firebas...
1 commit
# 124,290
C
Firebas...
SQL
postgre...
1 commit
# 59,571
JavaScr...
enzyme
React
asserti...
1 commit

MockFirebase Build Status

This worked back in the days of Firebase 1.X. These days, you should use the Firebase Emulator suite.

This was an experimental library and is not supported by Firebase

Setup

Node/Browserify

$ npm install mockfirebase
var MockFirebase = require('mockfirebase').MockFirebase;

AMD/Browser

$ bower install mockfirebase

API

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

Tutorials

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.