Join Slack
Powered by
Is there any documentation on testing non-ui compo...
# compose
p
Paul Woitaschek
08/29/2022, 6:07 PM
Is there any documentation on testing non-ui composable code?
h
hfhbd
08/29/2022, 6:37 PM
I know, HTML is UI but you could look at the test util which is quite readable and could help:
https://github.com/JetBrains/compose-jb/blob/master/web/test-utils/src/jsMain/kotlin/org/jetbrains/compose/web/testutils/TestUtils.kt
And the internal runtime contains the Applier:
https://github.com/JetBrains/compose-jb/tree/master/web/internal-web-core-runtime
p
Paul Woitaschek
08/29/2022, 6:59 PM
For the visually impaired:
https://gist.github.com/PaulWoitaschek/73ffd89076db0257054bc57415887e6d
h
hfhbd
08/29/2022, 7:02 PM
Nice, you actually dont test composable but a flow, created from composables with molecule 😄
11
Views
Open in Slack
Previous
Next