Testing In React Tutorial - Jest and React Testing Library

preview_player
Показать описание
In this video I will be going over testing in react by using Jest and React Testing Library.

Code:

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Timestamps:
00:00 | Demo
04:03 | Creating tests for components
12:43 | Running tests
22:41 | Using fireEvent

Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial

#reactjs #coding
Рекомендации по теме
Комментарии
Автор

I was thriving for this, all the videos on youtube just presumed that we know testing and made a bunch of tutorials on how to do testing but because of your video I know "what" and "why" is testing. Thank you ❤

selfbrilliance
Автор

Your videos are awesome! I'd love to see some more advanced testing examples on things such as custom hooks, testing where context is present, async functions, and mocking API responses!

markganser
Автор

Hey Pedro, thanks for making testing basics very simple.

ometman
Автор

These tests can produce false negatives and your test won't catch all possible bugs, as you convert string to number. It's very risky in JS world as we all know. For example `Number(false)` produces `0` too. Therefore you wouldn't catch all the bugs. Instead, you should change your assertion to expect to `.toEqual("0")`.

lokers_one
Автор

This helps a lot. And really need more videos on testing.

mysoregopinathshantanu
Автор

The best tutorial for learning react unit test super simple and straight forward :)

SinaTajik
Автор

thank you for the clear and concise information.

willmann
Автор

Your Videos are very informative. I was able to answer lot of questions in my interview with just watching your videos( react hooks). Now I am watching this . I am sure it will definitely help me...Thanks a lot..

vandanavishnu
Автор

Thanks a lot Pedro :) Another useful video. You keep helping us.

parvathyvd
Автор

You got a new subscriber. Simple and on point. Good video bro.

travelglobe
Автор

Thank you for valuable content. This video clear my concept about testing in react.

NikhilPawar
Автор

Well, It's on exact time. I am going to start to learn Testing in react

ankitkumarsharma
Автор

Great topic Pedro, super useful for any developer ✌🏻

universecode
Автор

This video is awesome and helps a lot, I also need create a dynamic XML sitemap and HTML sitemap in React

neverexecute
Автор

Hey, thanks for the video! Can you also do one which is like a Coding Interview in React from Begginer to Advanced with something like some typescript concepts included ? I think this will benefit alot of people who are preparing for coding interviews. Thanks again !

psydook
Автор

Great topic. Make more videos on this topic

chaitanyasawant
Автор

Great video Pedro. It would be nice to have the 'advanced' version where testing state changes by clicking buttons ;))

rodrigocastro
Автор

thank you so much, hope to see tutorial about cypress

LeslieDuan
Автор

Nice video, would be cool to show how this can be set up with Vite + React.

tootyrnt
Автор

Continue sharing your knowledge. God will take care fo you. Thanks dude ;)

ggwellplayed
visit shbcf.ru