Setup

Begin by installing the rut-dom package (or another renderer specific package) as a dev dependency. Since this is a React testing library, be sure react, and react-dom (or react-native, etc) is also installed.

yarn add --dev rut-dom

And that's it! Head over to the API for more information on how to use render(), renderAndWait(), and others -- or continue reading for testing framework specific functionality.

Support matrix#

The following React versions are supported by the following Rut versions.

ReactRut
16.x1.x
17.x2.x