mocks/firebase_test_setup
library
Functions
-
ensureFirebaseCoreMocksForTest()
→ void
-
Installs Firebase Core platform mocks so
Firebase.initializeApp works under
flutter test (no native Firebase host). Required before app bootstrap.
-
ensureLiveAuthActionsForTest()
→ void
-
Call after app module bootstrap so
signInWithCustomToken uses live Firebase.
-
ensureTestAnalyticsProvider()
→ void
-
Replaces the application's analytics provider with a no-op widget-test
provider after app module bootstrap and before test screens are launched.