hello, I have a problem with a UI test I want to write... I have a simple app: just a MainActivity that displays a list in a LazyColumn. The data is pulled from the MainViewModel which, in turns, ask it to a repository.
I want to make a test for it, but the problem I am having is that I am not being able to configure the FakeRepository before the activity starts and call the viewmodel to fetch the data.
I am using Hilt as a DI framework and "createAndroidComposeRule<MainActivity>()" in my test
Is there a way to configure the fake before the activity start? or maybe delay the start of the activity until the fake is configured and after that make assertions with a composeRule other than the AndroidComposeTestRule?