Returns a new wrapper with child at the specified index.
index
(number
): A zero-based integer indicating which node to retrieve.ReactWrapper
: A new wrapper that wraps the resulting node.
const wrapper = mount(<ToDoList items={items} />); expect(wrapper.find('ul').childAt(0).type()).to.equal('li');
.parents() => ReactWrapper
.parent() => ReactWrapper
.closest(selector) => ReactWrapper
.children() => ReactWrapper
© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ReactWrapper/childAt.html