Hello everyone, is there a way to unit test a shared flow that emits before collecting, for instance: I'm emitting in the viewModel's init block. Here's what I'm trying:
if there’s no cache configured you have to have the collector ready in time to collect it, otherwise you’ll just miss it.
Also, slightly unrelated: you can launch the collecting coroutine in backgroundScope to avoid having to keep a reference to its job and cancelling it manually at the end of the test.