https://kotlinlang.org logo
Title
t

Thiago

02/16/2022, 7:13 PM
Hi folks, why runtime mock test package is not public? Is there any library to test Compose Runtime only? https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]/runtime/src/commonTest/kotlin/androidx/compose/runtime/mock/
j

jw

02/16/2022, 7:15 PM
Test how? You can create a Composition and tick its clock in tests with whatever applier/composable combo you want.
t

Thiago

02/16/2022, 7:35 PM
I have a function that contains an Effect like Unmountable() below. Compose source have
compositionTest
and
compose
functions under tests. Are you saying to create ticks as in your Molecule tests? https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]monTest/kotlin/androidx/compose/runtime/EffectsTests.kt;l=175