ReactTestUtils: findAllInRenderedTree()

findAllInRenderedTree(
  tree,
  test
)

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.

Related concepts

findAllInRenderedTree()

ReactTestUtils: findAllInRenderedTree() — Structure map

Clickable & Draggable!

ReactTestUtils: findAllInRenderedTree() — Related pages: