Hi everyone, I am creating a reusable ui-testing m...
# gradle
r
Hi everyone, I am creating a reusable ui-testing module for a KMP project but facing some problems with
compose.uiTest
dependency. I added this dependency in the
ui-testing
module like this. But it has no effect on the module(home) where I implemented
ui-testing
module. However, it works when I defined below dependency directly in the home module. Could anyone please help me with this?
Copy code
commonTest.dependencies {
    @OptIn(ExperimentalComposeLibrary::class)
    api(compose.uiTest)
}
1
Hey @ephemient Can you please help me with this?
I managed to fix this issue by replacing
commonTest
with
commonMain
. Now I can successfully access the methods provided by the compose.uiTest in the implementing module, i.e.,
feature:home
.