Laurent Thiebaud
07/24/2025, 9:15 AMwithoutclass
07/24/2025, 1:43 PMwithoutclass
07/24/2025, 1:43 PMarnaud.giuliani
07/24/2025, 2:11 PMkoinApplication
instead of startKoin
is making local context instead of global one. Depends your usage behindLaurent Thiebaud
07/28/2025, 1:06 PMkoinApplication
with my modules
• then I declare some mocks on top within it
• I also declare the KoinComponent
I want to test
• in the KoinComponent
I get other dependencies using by inject<OtherDep>()
=> injection fails because KoinApplication has not been started
it looks like within a koinApplication
, inject
resolves dependencies using the global context
Do I understand well? Is that expected? It doesn't sound logical