coroutines Test
open fun coroutinesTest(context: CoroutineContext = dispatchers.Main, block: suspend TestCoroutineScope.() -> Unit)
Content copied to clipboard
Use this for ensure that the test block is running on the provided dispatcher and avoid errors like Job has not completed yet