@Test fun test() = runTest(UnconfinedTestDispatcher()) { val sample = Sample() val result = mutableListOf() val job = launch { sample.flow.toCollection(result) } // ... }
@Test fun test() = runTest(UnconfinedTestDispatcher()) { val sample = Sample() val result = mutableListOf() val job = launch { sample.flow.toCollection(result) } // ... }