fake_cloud_firestore
fake_cloud_firestore copied to clipboard
Batch failure is different compared to real firestore
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.