You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @skydoves, I am using the library and injecting component like this the fragment with Hilt as DI framework. @Inject lateinit var appSettingsComponent: PreferenceComponent_AppSettingsComponent
Now I am creating corresponding test class for this fragment, but I am unable to mockk the component class and inject in the fragment.
One of the possible solution is to uninstall the PrefModule and bind own fake AppSettingComponentImpl.
@skydoves is there a better than creating fakes, un-installing and binding the fake implementation.
Some magic stuff which works out of the box
The text was updated successfully, but these errors were encountered:
Hi @Dalakoti07!
I think creating mocked component/entity implementations is the best solution now.
If I find any nicer solutions, I'll share them with you!
Hi @skydoves, I am using the library and injecting component like this the fragment with Hilt as DI framework.
@Inject lateinit var appSettingsComponent: PreferenceComponent_AppSettingsComponent
Now I am creating corresponding test class for this fragment, but I am unable to mockk the component class and inject in the fragment.
One of the possible solution is to uninstall the PrefModule and bind own fake AppSettingComponentImpl.
@skydoves is there a better than creating fakes, un-installing and binding the fake implementation.
Some magic stuff which works out of the box
The text was updated successfully, but these errors were encountered: