score:3

Accepted answer
const wrapper = shallow(<MyComponent />);
expect(wrapper.find('Foo')).to.have.lengthOf(1);

Related Query

More Query from same tag