React Testing Library Tutorial | For Beginners

Опубликовано: 18 Октябрь 2024
на канале: Andy's Tech Tutorials
33
0

I show you step by step how to write your own react tests using the react testing library! I go through multiple examples and explain the basics of writing your own react tests.

App.test.js Code from Tutorial: https://pastebin
App.js Code from Tutorial: https://pastebin.com/PCWgUR7d

Chapters:
0:00 Intro
0:06 Install Node.js
0:15 Create React App
0:40 Run First React Test
1:08 Explain First React Test
1:22 Run React App
2:00 Explain Failing React Test
2:24 Test for Text on Screen
3:11 Test for Text not on Screen
3:48 Test Increase Counter Button Click
4:33 fireEvent Functionality
4:56 Test Decrease Counter Button Click
5:09 Test User Inputted Text Displays Text on Screen
6:11 Outro

#rect #testing #tutorial

😄 Want to support and help grow my channel?

Consider purchasing (name your own price) my Postman Collection file that has all of the API calls that I have ever made from my API Tutorial series: https://andystechtutorials.gumroad.co...



☕ Love my video and want to support me?
👉 https://www.buymeacoffee.com/andystut... The microphone that I use:

Technology that I use for my workflow setup:

Anker PowerCast M300 - https://amzn.to/3zlWh6z
Anker Wireless Vertical Ergonomic Optical Mouse - https://amzn.to/3LDhSxI
Apple 2021 MacBook Pro - https://amzn.to/420zCtJ
Apple AirPods Max Wireless Over-Ear Headphones - https://amzn.to/3LyGRSH

*The links above include affiliate commission or referrals.