mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: https://github.com/facebook/react-native/issues/45596 Migrated all the assertions to use `assertThat()` function from AssertJ. Also updated the `prepareBoostTask_withMissingConfiguration_fails` test to use `assertThatThrownBy` to check if the tested task throws a given exception. ## Changelog: Migrate tests to assertj in these files: - `packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareBoostTaskTest.kt` [INTERNAL] [CHANGED] - Migrated PrepareBoostTaskTest from junit.Assert to assertj.core.api.Assertions. For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/45718 Test Plan: All tests pass when `./gradlew -p packages/gradle-plugin test` command is ran. <img width="454" alt="image" src="https://github.com/user-attachments/assets/9e954f7b-2208-48a9-ae15-ab642252e6da"> Reviewed By: GijsWeterings Differential Revision: D60284566 Pulled By: cortinico fbshipit-source-id: 11af0a0ca574f935e6aab3a7855b5daaeab1a718
React Native Gradle Plugin
This plugin is used by React Native Apps to configure themselves.
NOTE: It's important that this folder is called react-native-gradle-plugin as it's used
by users in their build.gradle file as follows:
buildscript {
// ...
dependencies {
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
The name of the artifact is imposed by the folder name.