DEV Community

Discussion on: How do we unit test functions within a functional component?

Collapse
 
matenemeth profile image
Matt Nemeth • Edited

This^ . Also, if you have a function you reeeeally need to test, you can always extract it into a separate file/module/service/whatever, and you can unit test it separately from the functional component.