Join Slack
Powered by
Hi all, Is there any way to mock Compose NavHostCo...
# multiplatform
h
Hossein Amini
05/09/2025, 4:08 PM
Hi all, Is there any way to mock Compose NavHostController in Compose Multiplatform for testing purposes?
p
Pablichjenkov
05/09/2025, 4:22 PM
I believe very recently a new CMP nav component test artifact
navigation-testing
, was published. Doesn't it have a TestNavHostController?
h
Hossein Amini
05/09/2025, 4:56 PM
Where can I find the artifcat?
p
Pablichjenkov
05/09/2025, 5:30 PM
Check the release notes:
https://developer.android.com/jetpack/androidx/releases/navigation#2.9.0-alpha09
Apparently it is the same navigation-testing artifact that supports other platforms now.
🙌 2
h
Hossein Amini
05/09/2025, 6:10 PM
Great thank you
👍 1
2
Views
Open in Slack
Previous
Next