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 ❤
@lokers_one Жыл бұрын
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")`.
@mayurnagdev554511 ай бұрын
Thank you this was really helpful
@rowland1385 ай бұрын
Jesus Christ you are god of react js
@lewiswardita9902Ай бұрын
Use typescript to avoid those problems
@vandanavishnu19222 жыл бұрын
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..
@PedroTechnologies2 жыл бұрын
Best of luck!
@ArpithaIndira6 ай бұрын
It was so confusing for the beginner like me to understand this jest until you run the first test case..after that started understanding it even better..thanks for the work.. continue to grow🙏😊
@universecode11012 жыл бұрын
Great topic Pedro, super useful for any developer ✌🏻
@PedroTechnologies2 жыл бұрын
Thank you!!
@MehediHassan-pn5uc2 жыл бұрын
Dude you're a underrated Gem! ❤️
@markganser54852 жыл бұрын
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!
@filipevalentegomes23832 жыл бұрын
That’s so funny, I was gonna take a course for this today, haven’t done testing in a while. Thanks for the video
@SharukhKhan-sd7xg2 жыл бұрын
Which course are you going to buy?
@PedroTechnologies2 жыл бұрын
Hahahaha hope this video helps! Im planning on making a crash course on it!
@filipevalentegomes23832 жыл бұрын
@@PedroTechnologies awesome. Keep up the good work.
@SharukhKhan-sd7xg2 жыл бұрын
@@PedroTechnologies yes need that one
@filipevalentegomes23832 жыл бұрын
@@PedroTechnologies 13 min10 sec, there is an edit mistake I think. It jumps from on frame to another. Not sure if you know about that
@ankitkumarsharma23722 жыл бұрын
Well, It's on exact time. I am going to start to learn Testing in react
@anouar12368 күн бұрын
Great and simple explanation, Thank you
@PedroTechnologies6 күн бұрын
I'm glad you found it helpful!
@ometman Жыл бұрын
Hey Pedro, thanks for making testing basics very simple.
@willmann96 Жыл бұрын
thank you for the clear and concise information.
@SinaTajik Жыл бұрын
The best tutorial for learning react unit test super simple and straight forward :)
@NikhilPawar151 Жыл бұрын
Thank you for valuable content. This video clear my concept about testing in react.
@OPlutarch2 жыл бұрын
Thanks! Can you make more videos about testing? I think that it's a topic that a lot of us we need to improve :) Greetings.
@PedroTechnologies2 жыл бұрын
For sure!
@omarelgnn73442 жыл бұрын
@@PedroTechnologies yes this presentation of how to test the component or what should be tested and the component that renders data from API and so on Thanks for all
@travelglobe8997 Жыл бұрын
You got a new subscriber. Simple and on point. Good video bro.
@chaitanyasawant7762 жыл бұрын
Great topic. Make more videos on this topic
@mysoregopinathshantanu88002 жыл бұрын
This helps a lot. And really need more videos on testing.
@Liubov98763 ай бұрын
Thank you! The most understandable tutorial!
@ThColinPereira2 жыл бұрын
Great video Pedro! Super helpful
@tootyrnt5533 Жыл бұрын
Nice video, would be cool to show how this can be set up with Vite + React.
@ggwellplayed45682 жыл бұрын
Continue sharing your knowledge. God will take care fo you. Thanks dude ;)
@graycoder9911 Жыл бұрын
I only know of two great developers Ben awad and pedrotech
@dineshyeshamoni54263 ай бұрын
Nice informative video on jest.
@psydook2 жыл бұрын
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 !
@parvathyvd2 жыл бұрын
Thanks a lot Pedro :) Another useful video. You keep helping us.
@rodrigocastro3934 Жыл бұрын
Great video Pedro. It would be nice to have the 'advanced' version where testing state changes by clicking buttons ;))
@neverexecute24672 жыл бұрын
This video is awesome and helps a lot, I also need create a dynamic XML sitemap and HTML sitemap in React
@DaltonLaboratories Жыл бұрын
I would rather use "test" over "it" in your examples. The second one is an alias and it reads better only when you name your tests like this: 'it("should do something.."), it("should display the counter")' etc. Nevertheless, good tutorial, thanks!
@LeslieDuan2 жыл бұрын
thank you so much, hope to see tutorial about cypress
@karis75392 жыл бұрын
i personally love testing because i love automating things with Selenium or Playwright
@aleksandrkurilov259928 күн бұрын
Great job, thanks
@turing49912 жыл бұрын
You should try to make a video on publishing a react component. Publishing a hook is easy.
@bananablu472 жыл бұрын
Hey what is const { getByTestId } around 9:00 at line 6 ? An anonymous const?
@mohitdhule96542 жыл бұрын
Thank you 🙏
@christianlewis70552 жыл бұрын
Weird feedback: that habit of repeatedly highlighting the test while you're busy talking is satisfying only as long as you repeatedly highly exactly the correct area. Like if you start highlighting a string, as long as you start at the opening double quote and finish exactly after the closing quote, I find it satisfying and might actually help to retain my interest. But if you don't hit the mark just right, it will bother me. 😄
@JaredFL2 жыл бұрын
I'd like to see a Webpack beginner video :)
@antidotejack27715 ай бұрын
this is great, Thanks
@salonipande61902 жыл бұрын
@Pedro Tech can you please share the playlist of this course
@GlennMartin2 жыл бұрын
Pedro my man, how about testing forms and components that fetch data. Would like to learn how to mock them.
@sodhigurpreetsingh2 жыл бұрын
Great video again pedro.. can you make a video on Formik or any other library you know is best for forms..
@rishiraj2548Ай бұрын
Thanks
@tsdineshjai85652 жыл бұрын
Hey Pedro 👋, if possible do a crash course on this topic
@PedroTechnologies2 жыл бұрын
Yes, thats on the plans!
@waleedsharif6182 жыл бұрын
Could you show jest --coverage And how to get 100% test coverage ?
@santhoshkashyap94056 ай бұрын
Thank you ;)
@drawingdr98292 жыл бұрын
hello bro thanx for your videos we are really benefit from them. you deployed react node mysql app in heroku but it very expansive . can you do a tutorial about deploy it in digital ocean? thank you
@kranthikumar52152 жыл бұрын
Love you pedro❤
@amanjat79 ай бұрын
Helpful
@azeez_dev2 жыл бұрын
Nice video and can you please make a video about React Native testing library and in advance thanks!
@harishg94292 жыл бұрын
Can you pls make a video on testing components mocking API , also testing state. Thanks
@PedroTechnologies2 жыл бұрын
I can fs make one! Testing states is not that good imo, i would rather just spy on the state function and test its functionality bc states dont update equally. Also, testing should be for testing how the UI changes, not how the internal logic acts :)
@harishg94292 жыл бұрын
@@PedroTechnologies Thank you Pedro, I like all your videos, they are easy to follow and highly educational.
@rockncdesign2 жыл бұрын
Thanks your video!!!
@shishirrai10692 жыл бұрын
Please make video on jest and enzyme
@xman36662 жыл бұрын
If i have a componente such a “loading” using lazy render react. How can I test the elements that come after the loading? 😢
@Way_Of_The_Light2 жыл бұрын
ask ChatGPT
@brilliantatosam2 жыл бұрын
Awesome content
@Popo-hr6gc Жыл бұрын
What VSCode theme are u using?
@ankitchauhan86822 жыл бұрын
How is he using jsx with. Js extension?
@bartlebob3 ай бұрын
Having to add metadata to the dom elements sucks.
@suvendukumarsahoo41722 жыл бұрын
He can u have idea testing for post api
@Silent_Squid-p3f Жыл бұрын
how can this be done with ts and vite
@robertvelasquez8641 Жыл бұрын
what if i use vite?
@internetexplorer78802 жыл бұрын
What vscode theme is this?
@karthikbalaji3832 жыл бұрын
I have never done testing before so can anyone tell me how percentage of the testing concepts are covered in this video.
@bradenmitchell32652 жыл бұрын
Deja vu @ 13:09?
@PedroTechnologies2 жыл бұрын
Thank you for letting me know! This was a mistake on the editing!
@the_terrific_m3 ай бұрын
But where is the github repo link?
@primy35762 жыл бұрын
vs code theme?
@gmmkeshav Жыл бұрын
code of this video?
@patrykK1028 Жыл бұрын
There's no link to the code :/
@ranza6582 жыл бұрын
Is source code available for this video?
@WydeZ Жыл бұрын
where is the code
@LS9690 Жыл бұрын
Awesome video. It has helped me a lot already. There is an issue for later versions. Just add screen.getByTestId instead of getByTestId and you are good to go. For getByRole as well.
@cometarioxD2 жыл бұрын
Watch out folks, if you're getting the error message, look for EVERY syntax error possible!
@demarbrown439 Жыл бұрын
13:00
@reactDevelopment Жыл бұрын
can you make avideo on these act() mockComponent() isElement() isElementOfType() isDOMComponent() isCompositeComponent() isCompositeComponentWithType() findAllInRenderedTree() scryRenderedDOMComponentsWithClass() findRenderedDOMComponentWithClass() scryRenderedDOMComponentsWithTag() findRenderedDOMComponentWithTag() scryRenderedComponentsWithType() findRenderedComponentWithType() renderIntoDocument() Simulate
@thevasupodcast45612 жыл бұрын
Hey i noticed that here you are using a derived state, which is not best practice. You should move the state to a higher level component.
@arihantjain83472 жыл бұрын
It wasn't in round figure, stuck at 999, so I made it 1K.
@johnddonnet51518 ай бұрын
Who uses js in 2023???
@PedroTechnologies8 ай бұрын
I make videos in js bc it is more easily understandable by a wider audience. Someone who knows ts, understands js. Whilst someone who knows js doesn't necessarily know ts. If the point of the video is not the ts syntax, I prefer to use javascript since more people can understand it :)
@JohnWickXD8 ай бұрын
*I think you meant 2024
@Den1sNovikov Жыл бұрын
How I suppose to do it with you, if u are not sharing starting demo code?))) Dislike.
@Human_Evolution-2 жыл бұрын
I cannot reproduce this on my app at all. I hate this video. I hate testing. I watch you all the time and love your channel but testing has me so bitter I am downvoting you.