javascriptesmtestingmockingESM is supposed to be the future of JavaScript, but writing tests for ESM code can still be a huge pain because of one problem: Mocking. I've found an easy way to make ESM mocking <em>just work</em>.
testingtddOn my journey to get better at testing I've been learning about TDD. But I'm starting to wonder if TDD is universally the 'best' design process.
learning in publictestingLearning how to test well takes a lot of time and mental energy up front, but once you build up momentum it starts to pay off.
learning in publictestingjestasyncLet me save you some time. I spent hours debugging this and another 20 minutes writing up a draft Stack Overflow question before the answer came to me.