Hi. First of all thanks for Koin. great tool. Have...
# koin
y
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
did you use declaremock() we your type?
y
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.
and it’s not possible to override scoped definition, is it?
a
yeah perhaps not taken into account for scoped definitions
can raise a ticket
👍 1
y
thanks