giorgos
12/16/2020, 8:27 PMby sharedViewModel()
in a fragment and testing it with launchFragmentInContainer
in Espresso? Or any code sample available somewhere? I would like to see how you override the viewmodel in the espresso test cause it does not work for me:
override fun getModule() = module(override = true) {
viewModel {
fragmentViewModel
}
single {
analyticsManager
}
}
(analyticsManager
injection works fine)