A
A
anriko2021-11-14 01:06:16
React
anriko, 2021-11-14 01:06:16

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 your question

Ask a Question

731 491 924 answers to any question