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.screennamespace provides a wrapper around thereact-testing-library'sscreenobject, making it easier to interact with rendered components. -
The
react-testing-library-cljs.fire-eventsnamespace simplifies firing events on rendered components, allowing you to simulate user interactions.
-
The
react-testing-library-cljs.reagent.fire-eventsimilar to thereact-testing-library-cljs.fire-events, but callingreagent.core/flushafter every event to trigger re-render. -
The
react-testing-library-cljs.reagent.renderprovides 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.