From f61746d7d1c53816a1d4e98113c3eef7d179890c Mon Sep 17 00:00:00 2001 From: Thomas Nardone Date: Thu, 12 Dec 2024 11:39:28 -0800 Subject: [PATCH] [skip ci] Add mockito-kotlin (#48158) Summary: Changelog: [Android][Added] Add mockito-kotlin for Kotlin unit testing Reviewed By: cortinico Differential Revision: D66897263 --- packages/react-native/ReactAndroid/build.gradle.kts | 1 + packages/react-native/gradle/libs.versions.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index a5ecbf6111ff2d..4cab351efdfadf 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -664,6 +664,7 @@ dependencies { testImplementation(libs.junit) testImplementation(libs.assertj) testImplementation(libs.mockito) + testImplementation(libs.mockito.kotlin) testImplementation(libs.robolectric) testImplementation(libs.thoughtworks) } diff --git a/packages/react-native/gradle/libs.versions.toml b/packages/react-native/gradle/libs.versions.toml index 03351e484a26bd..3d03c4f1f22d57 100644 --- a/packages/react-native/gradle/libs.versions.toml +++ b/packages/react-native/gradle/libs.versions.toml @@ -26,6 +26,7 @@ jsr305 = "3.0.2" junit = "4.13.2" kotlin = "2.0.21" mockito = "3.12.4" +mockito-kotlin = "3.2.0" nexus-publish = "1.3.0" okhttp = "4.9.2" okio = "2.9.0" @@ -72,6 +73,7 @@ jsc-android = { module = "io.github.react-native-community:jsc-android", version junit = {module = "junit:junit", version.ref = "junit" } assertj = {module = "org.assertj:assertj-core", version.ref = "assertj" } mockito = {module = "org.mockito:mockito-inline", version.ref = "mockito" } +mockito-kotlin = {module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" } robolectric = {module = "org.robolectric:robolectric", version.ref = "robolectric" } thoughtworks = {module = "com.thoughtworks.xstream:xstream", version.ref = "xstream" }