Skip to content

Commit 6220eaa

Browse files
Bridgeless-context SurfaceMountingManagerSynchronousMountPropsTest (#59273)
Summary: Migrate `SurfaceMountingManagerSynchronousMountPropsTest` from the deprecated `createCatalystContextForTest` helper to `createTestReactApplicationContext`, so the test builds a bridgeless context directly. Changelog: [Internal] Differential Revision: D126574353
1 parent 48c141e commit 6220eaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import org.junit.Before
3434
import org.junit.Test
3535
import org.junit.runner.RunWith
3636
import org.robolectric.RobolectricTestRunner
37+
import org.robolectric.RuntimeEnvironment
3738
import org.robolectric.annotation.Config
3839

3940
/**
@@ -65,7 +66,8 @@ class SurfaceMountingManagerSynchronousMountPropsTest {
6566
@Before
6667
fun setUp() {
6768
ReactNativeFeatureFlagsForTests.setUp()
68-
val reactContext = ReactTestHelper.createCatalystContextForTest()
69+
val reactContext =
70+
ReactTestHelper.createTestReactApplicationContext(RuntimeEnvironment.getApplication())
6971
themedReactContext = ThemedReactContext(reactContext, reactContext, null, -1)
7072
mountingManager =
7173
MountingManager(

0 commit comments

Comments
 (0)