easy_mock_firebase 0.1.0
easy_mock_firebase: ^0.1.0 copied to clipboard
Firebase test fakes for Flutter widget tests. Stubs the Performance, Messaging, App Check and Crashlytics platform channels and installs an in-memory Remote Config (setRemoteValues / pushUpdate), so e [...]
0.1.0 #
- Initial release. Extracted from
easy_test_appso Firebase test fakes are opt-in per app. mockFirebasePerformance.init()— stubs the Firebase Performance pigeon channel so metric calls settle on the fake clock.mockFirebaseRemoteConfig.init()— in-memoryFirebaseRemoteConfigPlatform(setRemoteValues/pushUpdate) over the real Remote Config Dart logic.mockFirebaseMessaging.init()— stubs theplugins.flutter.io/firebase_messagingMethodChannel (permission / token / initial message;grant/deny/token/initialMessage/verify) viaeasy_mock_channel, keeping the real Dart logic.mockFirebaseAppCheck.init()— stubs the App Check pigeon channel (FirebaseAppCheckHostApi), keeping the real Dart;activate()no longer hangs on the unmocked channel.mockFirebaseCrashlytics.init()— stubs theplugins.flutter.io/firebase_crashlyticsMethodChannel viaeasy_mock_channel(keeps the real Dart logic; needs noFirebase.app()).mockFirebaseCore.init()— drop-in forsetupFirebaseCoreMocks()that seeds plugin constants (isCrashlyticsCollectionEnabled), required for the Crashlytics fake to take effect.