Repository navigation
Fix view transition test compilation on 0.88-stable - #60477
Merged
cortinico merged 1 commit intoDec 2, 2026
Merged
Conversation
gabrieldonadel
approved these changes
Dec 2, 2026
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
The backport of #59776 added a Robolectric test calling
ReactTestHelper.createTestReactApplicationContext()with no arguments. On main the helper defaults toRuntimeEnvironment.getApplication(), but on 0.88-stable theapplicationargument is required. This breaks Android unit-test compilation (see the failingbuild_androidjob on 0.88-stable). Pass the same Robolectric application explicitly in the test. Runtime behavior is unchanged; Android builds can compile the existing regression tests again.Changelog:
[INTERNAL] [FIXED] - Fix Android view-transition test compilation on 0.88-stable
Test Plan:
git diff --check— passes.yarn install --frozen-lockfile --non-interactive— passes, with no tracked changes../gradlew :packages:react-native:ReactAndroid:testDebugUnitTest --tests 'com.facebook.react.fabric.SurfaceMountingManagerViewTransitionTest' --console=plain— could not reach compilation: Gradle cannot connect to Maven Central to resolve the Kotlin JVM plugin and Hermes Android.yarn lint-kotlin-check --offline— cannot resolve uncachedcom.facebook:ktfmt:0.54. (This branch does not have theformat-check-kotlinscript available on main.)