-
Mocking and Stubbing in Tests, Explained
Mocking vs stubbing in tests explained, when to use each, and the overuse trap that produces brittle, implementation-coupled tests.
-
Writing Testable Code: Practical Patterns
Writing testable code: the difference between hidden dependencies that fight testing and explicit ones that make it trivial.
-
Dependency Injection Explained Without the Buzzwords
Dependency injection explained without the framework jargon: why handing dependencies in from outside makes code testable and swappable.
-
Testing JavaScript Code with Jest
Testing JavaScript code with Jest: writing assertions, mocking dependencies, and running with coverage reporting.
-
Apache2 Configuration Testing and Common Syntax Pitfalls
Testing Apache2 configuration syntax before reloading, and the common config mistakes that cause the most confusing errors.
-
Regular Expressions in JavaScript: The Basics
JavaScript regex basics: pattern testing, matching, named capture groups, and the g flag behavior that trips people up.
-
Windows Sandbox: Testing Untrusted Software Safely
How to enable and use Windows Sandbox for safely testing untrusted software, including a customizable .wsb configuration file.
-
Building Your First Chrome Extension
Building a minimal Chrome extension from scratch: the manifest, a popup that runs a script on the active tab, and loading it locally for testing.
-
An Introduction to Property-Based Testing
An introduction to property-based testing: verifying general properties across hundreds of generated inputs instead of hand-picked examples.