cloud_firestore_mocks 0.9.0+1 cloud_firestore_mocks: ^0.9.0+1 copied to clipboard
Fake implementation of Cloud Firestore. Use this package to write unit tests involving Cloud Firestore.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cloud_firestore_mocks
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cloud_firestore_mocks: ^0.9.0+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cloud_firestore_mocks/cloud_firestore_mocks.dart';