React Unit Testing Crash Course - Jest and React Testing Library

Опубликовано: 27 Сентябрь 2024
на канале: Hong Ly Tech
3,039
53

In this crash course, you will learn unit testing in React and how to implement it using Jest and React Testing Library. Snapshot testing is also discussed in this video. Happy learning!

Hostinger Anniversary Deal ➜ https://bit.ly/3z6Ahvq
⭐ Get a Free .COM domain with Premium Plan for 12+ months. Free SSL and Cloudflare included

🔔 SUBSCRIBE for more:
http://bit.ly/Subscribe-Hong-Ly

💻 Source code:
https://github.com/lyhd/unit-testing-...

🔗 Related crash courses:
JavaScript Unit Testing:    • Unit Testing Crash Course - JavaScrip...  

ℹ️ References:
https://www.npmjs.com/package/react-t...

🔥 Useful:
► Hostinger web hosting for your mission: https://www.hostg.xyz/SH5yf
► Bluehost build and grow your website without breaking a sweat: https://www.bluehost.com/track/hongly/
► Namecheap bring your ideas to life: https://honglytech.com/namecheap
► Squarespace everything you need to grow online: https://squarespace.syuh.net/bW9KB
► Wix create a website you’re proud of: https://wixstats.com/?a=37210&c=2611&...

🌐 Website: https://honglytech.com
📂 GitHub: https://github.com/lyhd
⭐ My course: https://honglytech.com/course

❤️ Support the channel:
https://ko-fi.com/hongly

🌎 Find me on:
Facebook:   / honglytech  
Instagram:   / hongly_tech  
Twitter:   / honglytech  
Discord:   / discord  

🎬 My gear:
Camera (Canon PowerShot G7 X Mark II): https://amzn.to/3ddGNHL
Microphone (FIFINE K669B): https://amzn.to/3qotmKa

🕒 Timestamps:
00:00 Intro
00:42 Users component
04:00 First test
10:53 Users test
22:18 Snapshot testing
28:40 Unit testing vs. Snapshot testing

#unittesting #jest #snapshot

⚠️ Disclaimer:
Some of the links and other products that appear on this video are from companies for which Hong Ly will earn an affiliate commission or referral bonus. Hong Ly is part of an affiliate network and receives compensation for sending traffic to partner sites. The content in this video is accurate as of the posting date. Some of the offers mentioned may no longer be available.