firebase-mock icon indicating copy to clipboard operation
firebase-mock copied to clipboard

Firebase mock library for writing unit tests

Results 65 firebase-mock issues
Sort by recently updated
recently updated
newest added

We are getting the following warning: ```sinon.reset is deprecated and will be removed from the public API in a future version of sinon.```

This adds support for the `listDocuments` method to `CollectionReference`. I need this when calling firestore from a service and not from a client. When preparing this PR I realised that...

`destination` is an optional parameter for `download` function. If it's not provided, it should serve the buffer

I've looked into the code Firebase Bucket Storage File (firebase-admin: "8.3.0") and found that when we call download - the content should be returned in any case.. ``` export declare...

I add demo for easy to understand.

With this following data snapshot: ``` { foo: { bar: 'val' } } ``` Calling `snapshot.child('foo/bar').val()` should be `val` - but as `.child` (and also `.hasChild`) just checks `this._snapshotdata` for...

fixes issue #121 by adding the function. I hacked together something for metadata and provider info, but it should at least not explode.

Add support for [array membership queries](https://cloud.google.com/firestore/docs/query-data/queries#array_membership), arrayRemove and arrayUnion.

This change ignores the optional `ReadOptions` in `firestore.getAll`. It also raises an exception if no argument were passed at all. If you use the `firebase-admin` package and call `getAll` with...

This change makes the `create()` method on `DocumentReference` resolve with `WriteResult` as described in the document. References: https://cloud.google.com/nodejs/docs/reference/firestore/latest/DocumentReference#create