I\'m confused about how to access value when using
mount
. Here\'s what I\'ve got as my test:
it(\'cancels changes w
I solved in a very simple way:
const wrapper: ShallowWrapper = shallow( );
wrapper.find(element).props().attribute-name
: it('should render user name', () => {
expect(wrapper.find('.edituser-name').props().defaultValue).toContain(props.name);
});
Cheers