Mock Cloud Firestore

What's This Library?

This is a mock library for Cloud Firestore.

It aims to support the APIs of the JavaScript SDK for the browsers. For Node users, it’d be best for you to use the built-in emulator instead.

Caveats

Not all APIs are supported. Here are some unsupported major ones

  • onSnapshot() is supported but doesn’t get realtime updates by default.
    • A naive listener is available in that changes to any data would cause it to fire.

Please file an issue should there be any APIs that isn’t supported.


Next: Getting Started »