fake_cloud_firestore icon indicating copy to clipboard operation
fake_cloud_firestore copied to clipboard

Batch failure is different compared to real firestore

Open timdebruyn opened this issue 1 year ago • 0 comments

When a batch fails (for example when the referenced document does not exists), the 'real' firestore throws a "FirebaseError" while the fake implementation throws a "Future.error".

So you can not test the failure of a batch since you need different exception handling to be in place.

timdebruyn avatar Jun 26 '23 09:06 timdebruyn