Android Test cannot execute Fragment instrumented tests with Dagger provided ViewModel, hitting NullPointerException on ViewModelProvider param owner
I have a fragment whose instance of ViewModel is provided by a component, scoped to the navigation graph of Main Activity. The Dagger app component was injected into the single Main Activity and grabbed inside the the fragment as a lazy delegated variable.