In this installment of Programming By Stealth, Bart Busschots takes us through some review in order to prepare us to begin our journey into test driven development (TDD) with the tool Jest which he’s chosen for our TDD. He clears up some confusion on the difference between
npm install and
npm ci, and then he gives us more guidance on when to use which JSDoc tags, especially when documenting plain objects. He gives us a refresher on the different ways of defining functions, and especially arrow functions which are heavily used by Jest. Jest also uses function chaining heavily so he reminds us of how that works as well.
Even if you remember all of this and had it all clear in your head (I most definitely did not) it’s great to have all of this content in one post as reference.
The next installment will continue firming up our foundation with some new concepts that are heavily used by Jest.
You can find Bart’s fabulous tutorial shownotes at pbs.bartificer.net