Problem with 1.9.23 KMP version. It's been fixed in 2.0 so it needs to be updated
This commit is contained in:
1 parent
bd83e9aee0
commit
59f2d77890
11 files changed
+132
-34
No files matched your search
@@ -306,7 +306,7 @@ kotlin {
|
||||
implementation(Deps.Common.coroutines)
|
||||
|
||||
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
||||
// implementation(kotlin("test"))
|
||||
implementation(kotlin("test"))
|
||||
// implementation(kotlin("test-junit"))
|
||||
}
|
||||
}
|
||||
@@ -333,6 +333,24 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: это скопипасчено с блока runningOnLinuxx86_64 (примерно 590 строка)
|
||||
val wasmJsMain by getting {
|
||||
dependencies {
|
||||
// implementation(kotlin(Deps.wasmJs.stdLib))
|
||||
implementation(npm(Deps.wasmJs.Npm.libsodiumWrappers.first, Deps.wasmJs.Npm.libsodiumWrappers.second))
|
||||
}
|
||||
}
|
||||
val wasmJsTest by getting {
|
||||
dependencies {
|
||||
dependsOn(commonTest)
|
||||
implementation(npm(Deps.wasmJs.Npm.libsodiumWrappers.first, Deps.wasmJs.Npm.libsodiumWrappers.second))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
||||
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Set up shared source sets
|
||||
//linux, linuxArm32Hfp, linuxArm64
|
||||
val linux64Bit = setOf(
|
||||
@@ -572,25 +590,6 @@ kotlin {
|
||||
runningOnLinuxx86_64 {
|
||||
println("Configuring Linux 64 Bit source sets")
|
||||
|
||||
val wasmJsMain by getting {
|
||||
// TODO: разобраться (и с test)
|
||||
dependencies {
|
||||
// implementation(kotlin(Deps.wasmJs.stdLib))
|
||||
implementation(npm(Deps.wasmJs.Npm.libsodiumWrappers.first, Deps.wasmJs.Npm.libsodiumWrappers.second))
|
||||
}
|
||||
}
|
||||
val wasmJsTest by getting {
|
||||
dependencies {
|
||||
// implementation(kotlin(Deps.wasmJs.test))
|
||||
implementation(npm(Deps.wasmJs.Npm.libsodiumWrappers.first, Deps.wasmJs.Npm.libsodiumWrappers.second))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
||||
// implementation("kotlinx-coroutines-test")
|
||||
|
||||
implementation(kotlin("test"))
|
||||
implementation(kotlin("test-junit"))
|
||||
}
|
||||
}
|
||||
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin(Deps.Js.stdLib))
|
||||
@@ -742,12 +741,12 @@ tasks {
|
||||
// }
|
||||
|
||||
// TODO: ваще не жс тест, помогите
|
||||
// val wasmJsBrowserTest by getting(KotlinJsTest::class) {
|
||||
// testLogging {
|
||||
// events("PASSED", "FAILED", "SKIPPED")
|
||||
// showStandardStreams = true
|
||||
// }
|
||||
// }
|
||||
val wasmJsBrowserTest by getting(KotlinJsTest::class) {
|
||||
testLogging {
|
||||
events("PASSED", "FAILED", "SKIPPED")
|
||||
showStandardStreams = true
|
||||
}
|
||||
}
|
||||
|
||||
val jsBrowserTest by getting(KotlinJsTest::class) {
|
||||
testLogging {
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ class SmokeTest {
|
||||
//TODO Browser ignores our testBlocking, node works fine though
|
||||
@Test
|
||||
fun testIfLibraryIsNotOnFire() {
|
||||
throw Exception("aoaoao")
|
||||
testBlocking {
|
||||
LibsodiumInitializer.initialize()
|
||||
val hashResult = GenericHash.genericHash("Hello".encodeToUByteArray(), 64)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
//package com.ionspin.kotlin.crypto.debug
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class TestTest {
|
||||
@Test
|
||||
fun wasmSymbolsTest() {
|
||||
assertEquals(42, 42)
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -4,8 +4,8 @@ import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class WasmSymbolsTest {
|
||||
// @Test
|
||||
// fun wasmSymbolsTest() {
|
||||
// assertEquals(42, 42)
|
||||
// }
|
||||
@Test
|
||||
fun wasmSymbolsTest() {
|
||||
assertEquals(42, 42)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user