DEV Community

Discussion on: Yet another reason to prefer unit tests 😇

Collapse
 
g_abud profile image
Gabriel Abud

I also find it really difficult to unit test things like React components with state, context, etc. The functions these components depend on, sure.

Maybe I just don't know how to write testable React components but to me it seems like more trouble than it's worth, most of the time.