Testing React Components

Опубликовано: 02 Октябрь 2020
на канале: Self Teach Me
18,183
574

Here, I'll show you how to write tests for a React component using Jest and the React Testing Library.

🎁 FREE TESTING SETUP CHECKLIST - https://selfteachme.ck.page/f73b8277c4

0:00 Intro / Beginning
11:41 Mocking Next.js's Routing System
14:00 Creating placeholders for all the tests that need to be written

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 -    • How to Create Tabs Using React  
Part 2: Intro to Testing -    • Introduction to Testing in JavaScript  
Part 3: Setting up our Testing Environment -    • JavaScript Testing Setup  
Part 4: Writing Unit Tests -    • Javascript Unit Testing  
Part 5: Testing our React Component - THIS VIDEO
Part 6: Looking at Code Coverage - COMING SOON!

🙋🏻‍♀️ INTERESTED in the App from Scratch Course? - https://selfteachme.ck.page/4f22b6ebd5

🔗 LINKS
Jest - https://jestjs.io/
React Testing Library - https://testing-library.com/docs/reac...

🤖CODE
React Tabbed Component, starting point on GitHub - https://github.com/selfteachme/0028-u...
React Tabbed Component, ending point on GitHub - https://github.com/selfteachme/0029-w...

👉🏻 Get Updates and Exclusive content at http://selfteach.me
💥 SelfTeach.me is a Zeal show: http://codingzeal.com