score:1

Accepted answer

The most straightforward solution is to check if state changed accordingly:

const component = shallow(<DataStructureForm />)
const value = 'someValue';
component.instance().handleChange('someName')({target: { value }});
expect(component.state('someName')).toEqual(value)

Related Query

More Query from same tag