Categories
Why doesn't simulate('change', { target: { value: 'test name' } }) work?
I use jest and enzyme like this, I can't fill the input wrapper.find('input').at(0).simulate('change', { target: { name: 'width', value: 50 } });
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question