Рет қаралды 28,256
Test Driven Development is a fantastic way to build code that you know is well tested and will work. I know I should code this way, but why don't I? Let's find out what Test Driven Development is, and see if you should give it a try as we apply it to basic JavaScript and TypeScript functions, custom React hooks and React components.
Wallaby: wallabyjs.com/
I have a book out on TypeScript that gets updated with a new chapter every time I add a new No BS TS episode. Check it out! no-bs-ts.myshopify.com/
👉 What's my theme? Night Wolf [black]
👉 What's that font? MonoLisa
👉 I'm a host on the React Round Up podcast: devchat.tv/podcasts/react-rou...
👉 Don't forget to subscribe to this channel for more updates: bit.ly/2E7drfJ
👉 Discord server signup: / discord
00:00 Introduction
01:00 Project Setup
01:27 Test Setup
02:00 Our first TDD tests
06:27 Testing without Wallaby
06:55 TDD'ing React hooks
13:05 TDD'ing React components
17:48 Why I Don't TDD Often
19:00 Outroduction
Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.
#tdd #react #reactHooks #testing