Could anyone pinpoint to a working `KoinTestRule` ...
# koin
n
Could anyone pinpoint to a working
KoinTestRule
example? I’m trying to use
KoinTestRule.create{ }
then
koinTestRule.koin.loadModules()
to override some bean definitions with mocks, though I’m bumping into:
java.lang.IllegalStateException: A KoinContext is already started
stopKoin()
was missing, extending
AutoCloseKoinTest()
instead of
KoinTest
does the job also
👍 1