React Testing for Beginners: Start Here!
282.2K views on YouTube
Ready to master React testing? This tutorial covers the essentials of React Testing Library with Vitest / Jest. Get hands-on and start writing better tests today!
๐ Want to take your skills to the next level?
– Check out my full course “React Testing Mastery”: https://bit.ly/3IBuILB
– Subscribe for more videos like this: https://goo.gl/6PYaGF
โ Stay connected:
– Twitter: https://twitter.com/moshhamedani
– Facebook: https://www.facebook.com/programmingwithmosh/
– Instagram: https://www.instagram.com/codewithmosh.official/
– LinkedIn: https://www.linkedin.com/school/codewithmosh/
๐ Related tutorials:
– JavaScript Unit Testing Tutorial: https://youtu.be/zuKbR4Q428o?si=tjVNNCY9FA4EEbPO
– React Tutorial for Beginners: https://youtu.be/SqcY0GlETPk?si=SopHGRFperVxzxyt
– TypeScript Tutorial for Beginners: https://youtu.be/d56mG7DezGs?si=hrEBCURyaKVqFH9c
๐ Full courses:
– React Testing Mastery: https://codewithmosh.com/p/react-testing-mastery
– React 18 for Beginners: https://codewithmosh.com/p/ultimate-react-part1
– React 18- Intermediate Topics: https://codewithmosh.com/p/ultimate-react-part2
– Mastering JavaScript Unit Testing: https://codewithmosh.com/p/mastering-javascript-unit-testing
– The Ultimate TypeScript Course: https://codewithmosh.com/p/the-ultimate-typescript
๐ TABLE OF CONTENT
0:00:00 โ Introduction
0:01:21 โ Prerequisites
0:03:00 โ Course Structure
0:04:46 โ How to Take this Course
0:06:37 โ Setting Up the Development Environment
0:07:36 โ Setting Up the Starter Project
0:13:31 โ Setting Up Vitest
0:17:19 โ Setting Up React Testing Library
0:20:24 โ Testing React Components
0:21:15 โ What to Test
0:24:31 โ Testing Rendering
0:33:12 โ Simplifying Test Setup
0:36:16 โ Exercise: Testing UserAccount
0:41:52 โ Announcement
0:42:41 โ Testing Lists
0:48:46 โ Exercise: Testing ProductImageGallery
0:53:08 โ Testing User Interactions
01:02:04 โ Exercise: Testing ExpandableText
01:13:17 โ Simplifying Tests
#react #reactjs #testing