Join Slack
Powered by
Hi. First of all thanks for Koin. great tool. Have...
# koin
y
yazazzello
05/13/2019, 1:14 PM
Hi. First of all thanks for Koin. great tool. Have a question: I’ve been busy with migrating to 2.0 - everything is good, but how do I mock/override definitions in scopes? (for testing) Thanks
a
arnaud.giuliani
05/14/2019, 7:14 AM
did you use declaremock() we your type?
y
yazazzello
05/14/2019, 8:59 AM
I tried, it perfectly works with single definition, but not with scope. I was looking at tests here
https://github.com/InsertKoinIO/koin/blob/master/koin-projects/koin-test/src/test/kotlin/org/koin/test/DeclareMockTests.kt
Most likely I’m missing something.
yazazzello
05/14/2019, 9:01 AM
and it’s not possible to override scoped definition, is it?
a
arnaud.giuliani
05/14/2019, 9:48 AM
yeah perhaps not taken into account for scoped definitions
arnaud.giuliani
05/14/2019, 10:04 AM
can raise a ticket
👍 1
y
yazazzello
05/14/2019, 11:19 AM
thanks
3
Views
Open in Slack
Previous
Next