<Kotlin multiplatform test error ("Error_0: Fail t...
# stackoverflow
u
Kotlin multiplatform test error ("Error_0: Fail to fetch") I have a kotlin-multiplatform project that has a kotlinJS client and a JVM backend. I'm creating some integration tests that are supposed to test the API calls from the client. The function is a suspend function with an HttpClient call with a POST method. I'm using kotlinx-coroutines-test, the test looks like this: @OptIn(ExperimentalCoroutinesApi::class) @Test fun testGetSingleResult() = runTest { val result = getSingleResult(TESTED_ID) assertThat(result.ID).isEqualTo(TESTED_ID) } It...