Alex
02/21/2019, 11:42 AMclass 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??arnaud.giuliani
02/21/2019, 2:22 PMandroidContext( ... )
in your koinApplication lambda and give it a mock of Application
Alex
02/21/2019, 4:46 PM