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 thereact-testing-library
'sscreen
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 thereact-testing-library-cljs.fire-events
, but callingreagent.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.