The react-testing-library-cljs
library provides a ClojureScript functions for the react-testing-library to simplify interop.
For more information about the principles and concepts behind the testing library, you can visit the official react-testing-library website.
The react-testing-library-cljs.screen
namespace provides a wrapper around the react-testing-library
's screen
object, making it easier to interact with rendered components.
The react-testing-library-cljs.fire-events
namespace simplifies firing events on rendered components, allowing you to simulate user interactions.
The react-testing-library-cljs.reagent.fire-event
similar to the react-testing-library-cljs.fire-events
, but calling reagent.core/flush
after every event to trigger re-render.
The react-testing-library-cljs.reagent.render
provides helper function to render reagent components.
To get started with react-testing-library-cljs
, you can refer to the example folder to see how to set it up.
This work is still in progress.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close