How do I print logs if a wasmJS test times out? If...
# webassembly
o
How do I print logs if a wasmJS test times out? If I run the test below:
Copy code
class WasmJsTestDebug {

    @Test
    fun logDoesNotPrintOnTimeout() = runTest {
        println("this log does NOT print")
        val flow = flow { while (true) emit(1) }
        val job = launch { flow.collect() }
        job.start()
    }
}
logDoesNotPrintOnTimeout
does not print the message and is not part of the generated test report. If I run the test on JVM, the message is printed even when the test times out, and is included as a failed test in the generated test report.