score:4

Accepted answer
const wrapper = mount(<MyComponent foo={10} />);
expect(wrapper.instance().props.foo).to.equal(10);

Related Query

More Query from same tag