DEV Community

Discussion on: Testing a simple component with React Testing Library

mbarzeev profile image
Matti Bar-Zeev Author

Yes, I also wrote that there is na option to simulatet the user typing, bit I think that firing the change event is sufficient here. Simulating the actual typing kinda crosses the border between unit and automation test for me, but sure, you can simulate the typing as well.