This message was deleted.
# compose
s
This message was deleted.
i
You should not ever do this. Use
TestNavHostController
from the
navigation-testing
artifact rather than a mock, but even then, you shouldn't be passing your
NavController
into screens that you are trying to test: https://developer.android.com/jetpack/compose/navigation#testing
1
c
I would really appreciate if this kind of question wasn’t deleted 🙂 we can all learn from mistakes
3