enzyme change value of component code example
Example 1: enzyme change input value
input.simulate('change', { target: { value: 'Hello' } })
Example 2: jest input value
let wrapped = mount(<Component />);
expect(wrapped.find("input").get(0).props.value).toEqual("something");