How to Test ClojureScript Applications?

I understand ClojureScript offers testing functionality out-of-the-box, however, I’m curious to learn:

  1. How is the community testing Reagent/Reframe (i.e. React) apps, including logic and UI?
  2. How - if at all - can libraries like the testing library be used in ClojureScript?

Thanks!

2 Likes

I have used enzyme until now, but react-testing-library looks like an improvement: see this blog post https://medium.com/@francisvitullo/a-way-of-testing-views-in-clojurescript-apps-98aaf57c5c2a

ofc you can do everything from unit tests to selenium etc as well if required.

3 Likes

We use react-testing-library directly in our project and it has been wonderful so far.

3 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.