reagent

κΉ€νƒœν¬(taehee kim) 2024-04-07T08:27:18.579929Z

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

πŸ‘ 6
κΉ€νƒœν¬(taehee kim) 2024-04-07T08:27:34.094709Z

(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")))))

κΉ€νƒœν¬(taehee kim) 2024-04-07T08:28:33.963679Z

ui mode

κΉ€νƒœν¬(taehee kim) 2024-04-07T08:28:54.594279Z

you can run component tests in real browsers, with watch mode.

κΉ€νƒœν¬(taehee kim) 2024-04-08T04:34:08.968309Z

Video of our actual test run