firebase-mock-observis

1.0.5 • Public • Published

Firebase Mock Build Status

Expanded functionality of the main library

Fork of the main library by Brian Soumakian. Expanded functionality:

  • onSnapshot method added to MockFirestoreDocument, returning MockFirebaseDocumentSnapshot object
  • onSnapshot method added to MockFirestoreCollection, returning MockQuerySnapshot object
  • onSnapshot method added to MockFirestoreQuery, returning MockQuerySnapshot object
  • MockFirestoreQuery where() method is updated to support '>=' and '<=' query operators (original library only supports '==')

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

Setup

npm install firebase-mock-observis --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

Readme

Keywords

Package Sidebar

Install

npm i firebase-mock-observis

Weekly Downloads

5

Version

1.0.5

License

MIT

Unpacked Size

1.6 MB

Total Files

29

Last publish

Collaborators

  • bogmoroz