findAllInRenderedTree function

  1. @JS('React.addons.TestUtils.findAllInRenderedTree')
List findAllInRenderedTree(
  1. dynamic tree,
  2. ComponentTestFunction 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

Included in Dart for completeness

Implementation

@JS('React.addons.TestUtils.findAllInRenderedTree')
external List<dynamic> findAllInRenderedTree(/* [1] */ tree, ComponentTestFunction test);