Closed
Description
Describe the Feature
At my company, we have a few uses case where we want to make assertion on the top level rendered element. Pre v7, we were able to do const element = view.container.children?.[0] || null
. Is there a way to get the same result for post v7 without adding additional testID
?
Trivial use cases example:
const Component = (render=true) => (render ? <View></View> : null);
// assert that component render when render is true
// assert that component render nothing when render is false
Possible Implementations
I see that we have renderer.root here. Maybe just have to expose that element
Related Issues
Metadata
Metadata
Assignees
Labels
No labels