fm

firebase-mock

Firebase mock library for writing unit tests

Showing:

Popularity

Downloads/wk

12K

GitHub Stars

50

Maintenance

Last Commit

2yrs ago

Contributors

51

Package

Dependencies

38

Size (min+gzip)

49.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Reviews

Average Rating

5.0/51
Read All Reviews

Top Feedback

1Great Documentation
1Easy to Use
1Performant

Readme

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)

Admin (firebase-admin)

Functions (firebase-functions)

Alternatives

Rate & Review

Great Documentation1
Easy to Use1
Performant1
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
Anil ChowdaryHyderabad78 Ratings78 Reviews
Frontend dev | React | Typescript | Javascript | Tailwind CSS
10 months ago
Easy to Use
Great Documentation
Performant