In this video, we're going to write unit tests for our React utility function.
In this video, we're going to write unit tests for our React utility function.
π FREE TESTING SETUP CHECKLIST
0:00 Intro / Beginning
1:19 Naming conventions that Jest recognizes
3:57 "Describe" / "It" method for writing tests
4:56 "Test" method for writing tests
6:29 Writing unit tests for our utility function
This video is part of a larger series where we build a React component from scratch and then write the tests to support it.
+ Part 1: Building the Actual React Tabbed Component
+ Part 2: Intro to Testing
+ Part 3: Setting up our Testing Environment
+ Part 4: Writing Unit Tests - THIS VIDEO
+ Part 5: Testing our React Component - COMING SOON!
+ Part 6: Looking at Code Coverage - COMING SOON!
ππ»ββοΈ INTERESTED in the App from Scratch Course?
π LINKS
+ Jest
+ React Testing Library
π€CODE
+ React Tabbed Component, *starting* point on GitHub
+ React Tabbed Component, *ending* point on GitHub
ππ» Get Updates and Exclusive content at Selfteach.me
π₯ SelfTeach.me is a Zeal show