React testing for DOM based components.
npm install rut-dom


React DOM testing made easy! Rut DOM is a Rut testing adapter
that provides a simple streamlined API for writing component based integration tests.
``tsx
import { render } from 'rut-dom';
import Input, { InputProps } from '../src/Input';
describe('', () => {
it('renders an input field', () => {
const { root, update } = render
expect(root).toHaveProp('name', 'rut');
expect(root).toHaveValue('foo');
expect(root).not.toBeDisabled();
update({ disabled: true });
expect(root).toBeDisabled();
});
});
`
- React 16.9+ (Rut v1)
- React 17+ (Rut v2)
```
yarn add --dev rut-dom react react-dom