Didier Villevalois
08/16/2021, 11:49 PMGlobalScope.launch
because there is no runBlocking
in Kotlin/JS. However, assertion errors are not correctly collected and the test doesn't fail when an assertion fails.
@Test
fun testSimple() = GlobalScope.launch {
// ...
}
Didier Villevalois
08/16/2021, 11:51 PMDidier Villevalois
08/16/2021, 11:55 PMkotlinx-corountine-test
with some workarounds:
https://github.com/Kotlin/kotlinx.coroutines/issues/1996