easy_mock_firebase 0.1.0 copy "easy_mock_firebase: ^0.1.0" to clipboard
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_app so 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-memory FirebaseRemoteConfigPlatform (setRemoteValues / pushUpdate) over the real Remote Config Dart logic.
  • mockFirebaseMessaging.init() — stubs the plugins.flutter.io/firebase_messaging MethodChannel (permission / token / initial message; grant / deny / token / initialMessage / verify) via easy_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 the plugins.flutter.io/firebase_crashlytics MethodChannel via easy_mock_channel (keeps the real Dart logic; needs no Firebase.app()).
  • mockFirebaseCore.init() — drop-in for setupFirebaseCoreMocks() that seeds plugin constants (isCrashlyticsCollectionEnabled), required for the Crashlytics fake to take effect.
0
likes
130
points
127
downloads

Documentation

API reference

Publisher

verified publisherahmedomar.com.ly

Weekly Downloads

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 each plugin runs its real Dart without reaching native. HttpMetric calls settle under the fake clock and App Check no longer hangs it.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

easy_mock_channel, firebase_core, firebase_core_platform_interface, firebase_remote_config_platform_interface, flutter, flutter_test

More

Packages that depend on easy_mock_firebase