DEV Community

loading...

Discussion on: Testing Non-Exported Functions in JavaScript

Collapse
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.

Collapse
samanthaming profile image
Samantha Ming Author

Fair point— thanks for sharing! 💪