Types or Tests: Why Not Both?

1 · CSS-Tricks · July 10, 2019, 8:15 p.m.
Every now and then, a debate flares up about the value of typed JavaScript. "Just write more tests!" yell some opponents. "Replace unit tests with types!" scream others. Both are right in some ways, and wrong in others. Twitter affords little room for nuance. But in the space of this article we can try to lay out a reasoned argument for how both can and should coexist. Correctness: what we all really want It’s best to start at the end. … Read article The post Types or Tests: Why Not Both? appe...