What is this?
A quick course for intermediate level developers looking to get started with testing using Jest and TypeScript.
We move fast, break things, then write tests to make sure they don’t break again. The technologies used are:
React Testing Library (v11)
Who is this for?
Highly motivated beginner who likes to jump in the deep end.
The Node.js section assumes basic Node.js/Express knowledge, and the React section assumes some React knowledge. The testing concepts are largely unrelated to those specific frameworks, so as long as you have some programming experience, you should be fine.
Get everything setup and starting writing some tests with Jest.
1.2 Your First Test
1.3 Adding an Assertion
1.4 Describing and Grouping Tests
1.5 Feedback Loop with Watch Mode
1.6 It.each for Concise Tests
2.0 Project: String Calculator
Specification: Typing the Test Suite