S Korebrits
11/13/2019, 4:05 PMexpect fun <T> runTest(block: suspend () -> T)
JVM
actual fun <T> runTest(block: suspend () -> T) {
runBlocking { block() }
}
https://blog.kotlin-academy.com/testing-common-modules-66b39d641617
https://youtrack.jetbrains.com/issue/KT-22228
How would I implement this vor the Native side? Or is there an better solution to this problem.russhwolf
11/13/2019, 4:52 PMactual
is identical to JVM. There's no runBlocking
in the common stdlib because it's not present in JS, but it does exist on the other platforms.S Korebrits
11/13/2019, 7:49 PMS Korebrits
11/14/2019, 12:22 PM