#Development #Approaches
My favorite way to write code in 2026 · Test-driven development using Playwright https://ilo.im/16b947
_____
#Programming #Testing #Coding #WebComponents #Playwright #WebDev #Frontend #JavaScript #HTML #JavaScript

My favorite way to write code in 2026 (on becoming a TDD addict)
I’ve hated writing JavaScript tests for pretty my whole career. That thing where you plan a component, write some code, iterate it a whole bunch until it works the way you want… and then write tests that validate that the thing you’ve already validated does in fact do the thing you already know it does? Yea, that sucks. It’s also not what good testing looks like. Today, I write my tests first, and then write my code.





