This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Hello~ I'm here to share my reagent + vitest + @testing-library component testing setup. So far, it is just the actual code I'm using in my work. But I'm going to share it as a more organized and advanced library in the future. (There should be a semantic version at that time.) https://github.com/taehee-sp/reagent-vitest-testing-lib/tree/main
👍 5
(it
"click counter then 1 up : siheom"
(run-siheom
(render [counter])
(click! (query "button" "click: 0"))
(click! (query "button" "click: 1"))
(visible? (query "button" "click: 2")))))
ui mode
you can run component tests in real browsers, with watch mode.
Video of our actual test run