Hey, I'm getting that famous `KoinApplication has ...
# kotest
a
Hey, I'm getting that famous
KoinApplication has not been started
when I try to use
context
in a FunSpec test. This works:
Copy code
test("bar") {
   withApp {
      // code here
   }
}
This doesn't:
Copy code
context("foo") {
   test("bar") {
      withApp {
         // code here
      }
   }
}
fyi the
withApp
is a wrapper we have to avoid Ktor and Koin conflicting in test environment (open to suggestions as well, certainly there's a more appropriated fix)
e
Are you using the KoinExtension?
a
Yes