Creates a shared JVM-test module and moves the jackson inlining tests there

This commit is contained in:
Vitor Pamplona
2025-09-23 13:45:48 -04:00
parent 313e2519b2
commit fadd9c1940
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -141,6 +141,14 @@ kotlin {
} }
} }
// Must be defined before androidMain and jvmMain
val jvmAndroidTest = create("jvmAndroidTest") {
dependsOn(commonTest.get())
dependencies {
implementation(libs.kotlin.test)
}
}
jvmMain { jvmMain {
dependsOn(jvmAndroid) dependsOn(jvmAndroid)
dependencies { dependencies {
@@ -154,6 +162,7 @@ kotlin {
} }
jvmTest { jvmTest {
dependsOn(jvmAndroidTest)
dependencies { dependencies {
// Bitcoin secp256k1 bindings // Bitcoin secp256k1 bindings
implementation(libs.secp256k1.kmp.jni.jvm) implementation(libs.secp256k1.kmp.jni.jvm)
@@ -21,8 +21,8 @@
package com.vitorpamplona.quartz.nip01Core.jackson package com.vitorpamplona.quartz.nip01Core.jackson
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.junit.Assert.assertEquals
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals
class InliningTagArrayPrettyPrinterTest { class InliningTagArrayPrettyPrinterTest {
val mapper = val mapper =