Self-review: Writing more test scenarios - Advanced React
Sep 16, 2024 · 1 min read · What’s the correct call to fire an onChange event on an input with react-testing-library’s fireEvent API? fireEvent.change(input, { target: { value: 'myValue' } }); fireEvent.change(input, { value: 'myValue' }); fireEvent.onChange(input, {...
Join discussion














