Bart Busschots taught us the basics of Jest last time for our Test Driven Development environment. This week we learn to group our tests using the describe() function in Jest. Grouping tests with describe does more than eliminate the need to comment our code, it also provides more useful output from our tests and scopes […]
Continue readingTag: jest
CCATP #715 – Bart Busschots on PBS 135 of X – Introducing Jest (and re-Introducing Test Driven Development & Unit Testing)
In this week’s installment of Programming By Stealth, Bart takes us down memory lane to 102 episodes ago when he first introduced us to the concept of test-driven development. He explains why back then he taught us how to use QUnit for our TDD work, and why it’s no longer in favor with him. It’s […]
Continue readingCCATP #713 – Bart Busschots on PBS 134 of X — Firming up our Foundations (2 of 2)
In this installment of Programming By Stealth, Bart Busschots finishes firming up our foundation on a few more things before we meet Jest, which will be the Test Driven Development (TDD) environment we’ll be learning next time. He explains in some adorable examples involving a parrot (named Polly of course) how getters can be used […]
Continue readingCCATP #711 – Bart Busschots on PBS 133 of X – Firming up our Foundations (1 of 2)
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 […]
Continue reading