Skip to content

Commit ffaf5fa

Browse files
Thomas Nardonefacebook-github-bot
authored andcommitted
Add mockito-kotlin (facebook#48158)
Summary: Changelog: [Android][Added] Add mockito-kotlin for Kotlin unit testing Reviewed By: cortinico Differential Revision: D66897263
1 parent 173b658 commit ffaf5fa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/react-native/ReactAndroid/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ dependencies {
664664
testImplementation(libs.junit)
665665
testImplementation(libs.assertj)
666666
testImplementation(libs.mockito)
667+
testImplementation(libs.mockito.kotlin)
667668
testImplementation(libs.robolectric)
668669
testImplementation(libs.thoughtworks)
669670
}

packages/react-native/gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jsr305 = "3.0.2"
2626
junit = "4.13.2"
2727
kotlin = "2.0.21"
2828
mockito = "3.12.4"
29+
mockito-kotlin = "3.2.0"
2930
nexus-publish = "1.3.0"
3031
okhttp = "4.9.2"
3132
okio = "2.9.0"
@@ -72,6 +73,7 @@ jsc-android = { module = "io.github.react-native-community:jsc-android", version
7273
junit = {module = "junit:junit", version.ref = "junit" }
7374
assertj = {module = "org.assertj:assertj-core", version.ref = "assertj" }
7475
mockito = {module = "org.mockito:mockito-inline", version.ref = "mockito" }
76+
mockito-kotlin = {module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" }
7577
robolectric = {module = "org.robolectric:robolectric", version.ref = "robolectric" }
7678
thoughtworks = {module = "com.thoughtworks.xstream:xstream", version.ref = "xstream" }
7779

0 commit comments

Comments
 (0)