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.
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.