Skip to content

Commit e48cf2d

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Bridgeless-context MountingManagerAnimatedPropsTest (#59272)
Summary: Pull Request resolved: #59272 Migrate `MountingManagerAnimatedPropsTest` from the deprecated `createCatalystContextForTest` helper to `createTestReactApplicationContext`, so the test builds a bridgeless context directly. Changelog: [Internal] Differential Revision: D126574351
1 parent 985a81d commit e48cf2d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import org.junit.Before
3131
import org.junit.Test
3232
import org.junit.runner.RunWith
3333
import org.robolectric.RobolectricTestRunner
34+
import org.robolectric.RuntimeEnvironment
3435
import org.robolectric.annotation.Config
3536

3637
@RunWith(RobolectricTestRunner::class)
@@ -54,7 +55,8 @@ class MountingManagerAnimatedPropsTest {
5455
@Before
5556
fun setUp() {
5657
ReactNativeFeatureFlagsForTests.setUp()
57-
val reactContext = ReactTestHelper.createCatalystContextForTest()
58+
val reactContext =
59+
ReactTestHelper.createTestReactApplicationContext(RuntimeEnvironment.getApplication())
5860
themedReactContext = ThemedReactContext(reactContext, reactContext, null, -1)
5961
mountingManager =
6062
MountingManager(ViewManagerRegistry(listOf<ViewManager<*, *>>(ReactViewManager())), {})

0 commit comments

Comments
 (0)