Wraps a React Root (introduced in React 18) and provides utilities for testing its state.
As an example `testRoot.innerHTML.assert("
Welcome")`
- Since:
2.2.0 / React 18
- Companion:
- object
Type members
Types
Value members
Abstract methods
Concrete methods
Inherited methods
Cast the DOM as A
or throw an exception.
Cast the DOM as A
or throw an exception.
- Inherited from:
- TestDom
def fold[A](onElement: Element => A, onDocument: Document => A, onDocumentFragment: DocumentFragment => A): A
- Inherited from:
- TestContainer