#Testable-Code
2 notas · última:
Writing Testable JavaScript
The article argues that unit testing becomes practical when JavaScript is split into small, testable pieces with clear responsibilities, simple methods, and configurable objects.
How I Write Testable Code | Khalil's Simple Methodology | Khalil Stemmler
The article argues that testability depends on how dependencies are introduced. Prefer abstractions, same-layer or inner-layer dependencies, or stable dependencies, and use dependency inversion when a dependency makes testing hard.
