Skip to content

Commit cf023e8

Browse files
Bridgeless-context FabricUIManagerPullModelTest
Summary: Migrate `FabricUIManagerPullModelTest` from the deprecated `createCatalystContextForTest` helper to `createTestReactApplicationContext`, so the test builds a bridgeless context directly. Changelog: [Internal] Differential Revision: D126574347
1 parent eb1f055 commit cf023e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/FabricUIManagerPullModelTest.kt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import org.junit.Before
3030
import org.junit.Test
3131
import org.junit.runner.RunWith
3232
import org.robolectric.RobolectricTestRunner
33+
import org.robolectric.RuntimeEnvironment
3334
import org.robolectric.annotation.Config
3435
import org.robolectric.shadow.api.Shadow
3536
import org.robolectric.util.ReflectionHelpers
@@ -68,7 +69,8 @@ class FabricUIManagerPullModelTest {
6869
override fun enableMountingCoordinatorPullModelAndroid(): Boolean = true
6970
},
7071
)
71-
reactContext = ReactTestHelper.createCatalystContextForTest()
72+
reactContext =
73+
ReactTestHelper.createTestReactApplicationContext(RuntimeEnvironment.getApplication())
7274
underTest =
7375
FabricUIManager(
7476
reactContext,

0 commit comments

Comments
 (0)