inside my `ViewModel` `init` block am converting `...
# android
m
inside my
ViewModel
init
block am converting
SavedInstanceState.getLiveData
to
Flow
using
asFlow
but when I do that inside
init
block my tests are failing because
InstantTaskExecutorRule
seems to not take place before
init
block. how to go about this?
m
afaik, the init function inside viewmodels is executed once, so, the executors rule should not work if youre using mocked viewmodels usong mockito :S
m
am not mocking
am testing that viewmodel and am creating it