Hi all,
I am using Espresso test for one my fragments. I also use custom NavhostFragment. I am using TestNavController to imitate my nav controller. Everything works well except when I call my viewmodel in Fragment. It is bounded to Fragment by navGraphViewModels and I couldn't find any solution on SO.
Error message
View(id:container) doesn't have a NavController set.