Traverse all components in tree and accumulate all components where test(component) is true.
Traverse all components in tree and accumulate all components where test(component) is true. This is not that useful on its own, but it's used as a primitive for other test utils.
Same as scryRenderedComponentsWithType() but expects there to be one result and returns that one result, or throws exception if there is any other number of matches besides one.
Like scryRenderedDOMComponentsWithClass() but expects there to be one result, and returns that one result, or throws exception if there is any other number of matches besides one.
Like scryRenderedDOMComponentsWithTag() but expects there to be one result, and returns that one result, or throws exception if there is any other number of matches besides one.
Turn <div data-reactroot="">hello</div>
into <div>hello</div>
Renders a component into the document body via ReactDOM.render().
Renders a component into the document body via ReactDOM.render().
Unlike ReactTestUtils.renderIntoDocument(), this allows DOM focus to work.
Render a component into a detached DOM node in the document.
Render a component into a detached DOM node in the document. This function requires a DOM.
Finds all instances of components with type equal to componentClass.
Finds all instance of components in the rendered tree that are DOM components with the class name matching className.
Finds all instance of components in the rendered tree that are DOM components with the tag name matching tagName.
Renders a component then unmounts and cleans up after use.
Renders a component then unmounts and cleans up after use.
Whether to use renderIntoBody() or ReactTestUtils.renderIntoDocument().
Renders a component then unmounts and cleans up after use.
Renders a component then unmounts and cleans up after use.
Whether to use renderIntoBodyAsync() or renderIntoDocumentAsync().
Renders a component into the document body via ReactDOM.render(), then unmounts and cleans up after use.
Renders a component into the document body via ReactDOM.render(), then unmounts and cleans up after use.
Unlike ReactTestUtils.renderIntoDocument(), this allows DOM focus to work.
Renders a component into the document body via ReactDOM.render(), and asynchronously waits for the Future to complete before unmounting.
Renders a component into detached DOM via ReactTestUtils.renderIntoDocument(), then unmounts and cleans up after use.
Renders a component into detached DOM via ReactTestUtils.renderIntoDocument(), and asynchronously waits for the Future to complete before unmounting.