atn832 / fake_cloud_firestore

BSD 2-Clause "Simplified" License
119 stars 93 forks source link

Batch failure is different compared to real firestore #270

Open timdebruyn opened 1 year ago

timdebruyn commented 1 year ago

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.