amazingustav
03/22/2024, 3:44 PMKoinApplication has not been started when I try to use context in a FunSpec test.
This works:
test("bar") {
withApp {
// code here
}
}
This doesn't:
context("foo") {
test("bar") {
withApp {
// code here
}
}
}amazingustav
03/22/2024, 3:45 PMwithApp 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)Emil Kantis
03/22/2024, 5:27 PMamazingustav
03/22/2024, 5:38 PM