DEV Community

Discussion on: Testing Non-Exported Functions in JavaScript

Collapse
 
frondor profile image
Federico Vázquez • Edited

Friendly advice, try not to test implementations, rather do it with integrations. It's not worth when you do refractors or even renames and your tests start failing, although the logic and result of your program is still the same.

Collapse
 
samanthaming profile image
Samantha Ming

Fair point— thanks for sharing! 💪