TestJacket<T extends Component> class

Provides more a more consistent and easier to use API to test and manipulate a rendered ReactComponent.

Properties

attachedToDocument → bool
final
autoTearDown → bool
final
hashCode → int
The hash code for this object.
no setterinherited
isMounted → bool
Returns if the jacket component is mounted or not.
no setter
mountNode → Element
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDartInstance() → T?
Returns the native Dart component associated with the mounted React composite component instance, or null if the component is not Dart based.
getInstance() → ReactComponent
Returns the mounted React composite component instance.
getNode() → Element?
Returns the DOM node associated with the mounted React composite / DOM component instance.
getProps() → Map
Returns the props associated with the mounted React composite component instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rerender(ReactElement reactElement) → void
Rerenders the reactElement into the same mountNode.
setState(dynamic newState, [dynamic callback()?]) → void
Update the Dart component's state to the provided newState value and force a re-render.
toString() → String
A string representation of this object.
inherited
unmount() → void
Unmounts the React component instance and cleans up any attached DOM nodes.

Operators

operator ==(Object other) → bool
The equality operator.
inherited