https://clojurians.slack.com/archives/C013B7MQHJQ/p1729165928590969
@taehee.kim do you have any sample code of how you setup Vitest with ClojureScript?
Luckily, it's "yes." https://github.com/taehee-sp/reagent-vitest-testing-lib
but it's bit old. I will update it soon
Nice, thanks! Do you still recommend using vitest with CLJS?
Yes. I use it in production. It's still awesome. :)
I would recommend Playwright (it's good). We're also using Vitest browser mode for ClojureScript frontend. However, it's generally not a good idea to check backend internal state from E2E/integration tests (in most cases). You can just assert user-facing get/read/query views like list or detail pages after post/create/mutation actions. If you're interested in testing the backend in isolation, there are many traditional options. Just use deftest or polylith-kaocha, polylith-external-test-runner, etc. There are good books on testing (with functional programming understanding) like "Unit Testing Principles, Practices, and Patterns". Functional programming is also being accepted by object-oriented and test advocates. They are increasingly understanding functional customs and integrating them with their traditions.