japgolly.scalajs.react.test.TestReactRoot
See theTestReactRoot companion object
trait TestReactRoot extends TestContainer
Wraps a React Root (introduced in React 18) and provides utilities for testing its state.
As an example `testRoot.innerHTML.assert("
Welcome")`
Attributes
- Since
-
2.2.0 / React 18
- Companion
- object
- Graph
-
- Supertypes
Members list
Type members
Types
Value members
Abstract methods
Inherited methods
Cast the DOM as A
or throw an exception.
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestContainer
Attributes
- Inherited from:
- TestDom
def fold[A](onElement: Element => A, onDocument: Document => A, onDocumentFragment: DocumentFragment => A): A
Attributes
- Inherited from:
- TestContainer
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestContainer
Attributes
- Inherited from:
- TestContainer
Attributes
- Inherited from:
- TestContainer
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
Attributes
- Inherited from:
- TestDom
In this article