Skip to content

Fix view transition test compilation on 0.88-stable - #60477

Merged
cortinico merged 1 commit into
react:0.88-stablefrom
cortinico:codex/fix-view-transition-088
Dec 2, 2026
Merged

cortinico merged 1 commit into
react:0.88-stablefrom
cortinico:codex/fix-view-transition-088

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:

The backport of #59776 added a Robolectric test calling ReactTestHelper.createTestReactApplicationContext() with no arguments. On main the helper defaults to RuntimeEnvironment.getApplication(), but on 0.88-stable the application argument is required. This breaks Android unit-test compilation (see the failing build_android job 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 uncached com.facebook:ktfmt:0.54. (This branch does not have the format-check-kotlin script available on main.)
  • CI should verify the Android test compilation and seven existing Robolectric cases.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 2, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Dec 2, 2026
@cortinico
cortinico merged commit f38c020 into react:0.88-stable Dec 2, 2026
58 checks passed
@cortinico
cortinico deleted the codex/fix-view-transition-088 branch December 2, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants