There is a curious inconsistency between enzyme selectors for shallow rendered components (shallow) and fully rendered components (mount). In order to organize my thoughts, this is a gist describing the issue. First, let's propose a component.
const RepeatDiv = ({depth}) => (<div>{depth > 1 && <RepeatDiv depth={depth-1} />}</div>);
This snippet will define a component called RepeatDiv
that will accept a depth prop and will render itself recursively to draw N div elements.