Hi folks, why runtime mock test package is not pub...
# compose
t
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
Test how? You can create a Composition and tick its clock in tests with whatever applier/composable combo you want.
t
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