DEV Community


Discussion on: Testing Non-Exported Functions in JavaScript

frondor profile image
Federico Vázquez

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.

samanthaming profile image
Samantha Ming Author

Fair point— thanks for sharing! 💪