Back to Browse

Introduction to Test-Driven Development (TDD) with TypeScript | 2021

12.3K views
Mar 31, 2021
13:35

Tests give you confidence that your code is free of bugs, makes it safe to refactor, prevents regressions, and keeps you productive in the long term. The easiest way to write testable code is to write the test first. In this introduction to Test-Driven Development (TDD), we learn about the basics of TDD and how to implement the Red-Green-Refactor loop using TypeScript and Jest. 0:00 Intro 0:13 Why write tests? 1:00 Why don't developers write tests more often? 1:26 Testing is architectural 2:29 What is TDD & how does it work? 3:07 TDD is a process 3:36 Double Loop TDD 3:50 TDD Demonstration 12:18 Conclusion _______________________________________________________________ LEARN TO WRITE TESTABLE, FLEXIBLE, MAINTAINABLE CODE (BLOG) https://khalilstemmler.com _______________________________________________________________ SIMPLE TYPESCRIPT STARTER (REPO): https://github.com/stemmlerjs/simple-typescript-starter _______________________________________________________________ SOLIDBOOK.IO (THE SOFTWARE DESIGN & ARCHITECTURE HANDBOOK) https://solidbook.io

Download

1 formats

Video Formats

360pmp423.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Introduction to Test-Driven Development (TDD) with TypeScript | 2021 | NatokHD