Hey all! Trying to migrate to Koin 2.0.0 but I fee...
# koin
p
Hey all! Trying to migrate to Koin 2.0.0 but I feel I am missing some critical parts. Previously we were using a
factory
to return a
Long
for example. I am trying to mock this in tests, but I am not sure what the proper syntax is: Previously:
Copy code
declare {
      module("module_name") {
        factory(name = "factory_name", override = true) {
          longValue
        }
      }
}
Now I see that I need to use
declareMock
, on which I am not sure how to stub the returned value.