Skip to content

Commit 6fe4e65

Browse files
Bridgeless-context FabricUIManagerPullModelTest (#59271)
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 f236bed commit 6fe4e65

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
@@ -39,6 +39,7 @@ import org.junit.Test
3939
import org.junit.runner.RunWith
4040
import org.mockito.kotlin.mock
4141
import org.robolectric.RobolectricTestRunner
42+
import org.robolectric.RuntimeEnvironment
4243
import org.robolectric.Shadows.shadowOf
4344
import org.robolectric.annotation.Config
4445
import org.robolectric.shadow.api.Shadow
@@ -76,7 +77,8 @@ class FabricUIManagerPullModelTest {
7677
fun setup() {
7778
ReactNativeFeatureFlagsForTests.setUp()
7879
overrideFeatureFlags()
79-
reactContext = ReactTestHelper.createCatalystContextForTest()
80+
reactContext =
81+
ReactTestHelper.createTestReactApplicationContext(RuntimeEnvironment.getApplication())
8082
underTest =
8183
FabricUIManager(
8284
reactContext,

0 commit comments

Comments
 (0)