Replies: 1 comment
-
Do I have to inject the Repository in a NavigationTest and ignore the hiltViewModel that existed in BookmarksScreen.kt? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why using this way? For example in BookmarksNavigation.kt and BookmarksScreen.kt
In my scenario, I'm not using BottomNavigation and my app is just navigating from one screen to another but I cannot test this because the NavGraphBuilder.*sampleScreen is pointing to sampleRoute, which is not testable. You made
nowinandroid/feature/bookmarks/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/bookmarks/BookmarksScreen.kt
Line 104 in 76d0e43
Sorry, I'm just a newbie to this. Hopeful for responses from Google Team♥️
Beta Was this translation helpful? Give feedback.
All reactions