Fred Marecesche

Results 5 comments of Fred Marecesche

The only library that needs mocking is the `'firebase/app'` one, so your mock should apply to that instead and simply return the mock SDK -- the 'instructions' (if one can...

AFAIK the only way to set initial data is to manually set each document, so: ```js const collectionRef = firebase.firestore().collection('collectionId'); ref.doc('docId').set({foo: 'bar'}); ref.doc('anotherDocId').set({foo: 'baz'}); // etc... ``` If you're only...

I think firebase has moved on a bit since the last commits to this mocking library -- I've just come across some more missing functionality, which I may create a...

Has there been any further guidance on that? Seems like it would be a handy thing to have, current solution is hacky at best!

That would be fine for overriding settings for all scenarios, but I think the primary need is to override them per scenario. I've been struggling to find a way of...