Hey, another Q. I am getting the output below when...
# decompose
f
Hey, another Q. I am getting the output below when running tests. I am using kotest and have tried the snippet below to set the dispatcher for for main. Is there any idea on what I might be missing for setting the Main thread for desktopTest?
> Task :shared:desktopTest
AboutComponentTest[desktop] STANDARD_ERROR
com.arkivanov.decompose.mainthread.NotOnMainThreadException: Expected to be called on the main thread, but was pool-1-thread-1 @coroutine#19
Copy code
beforeTest {
        Dispatchers.setMain(UnconfinedTestDispatcher() as CoroutineDispatcher)
    }
    afterTest {
        Dispatchers.resetMain()
    }
a
That's a warning that you can just ignore. Or you can disable the check by setting onDecomposeError = {} top-level properly somewhere before the test.
1