Hi, I am testing my modules like this ``` class Mo...
# koin
a
Hi, I am testing my modules like this
Copy code
class ModulesTest : KoinTest {

    @Test
    fun checkAllModules() {
        koinApplication { modules(listOf(coreModule, appModule, roomModule, moshiModule)) }.checkModules()
    }
}
but I am getting the following error:
org.koin.core.error.NoBeanDefFoundException: No definition found for 'android.content.Context' has been found
I know it is because my room module is using
androidApplication()
but I don't know how to fix it. Any ideas please??
a
you should add
androidContext( ... )
in your koinApplication lambda and give it a mock of
Application
a
thanks! I will try that 🙂
👍 1