is it required that you pass in the same instances of the module you loaded? Or can you generate the module you would like to unload?
E.g would this work:
Copy code
internal fun getKoinModule(useMocks: Boolean) = module {
single { Log(testing = useMocks) }
}
loadKoinModules(getKoinModule(true))
unloadKoinModules(getKoinModule(true))