No video
React Testing Tutorial with React Testing Library and Jest
React testing crash course using Jest and React testing library.
Discover Wallaby: bit.ly/lamadevwallaby
Get a 20% discount: bit.ly/wallaby20
Support the channel: / @lamadev
Buy me a coffee: www.buymeacoffee.com/lamadev
Source Code: github.com/safak/youtube2022/...
Join Lama Dev groups
Facebook: / lamadev
Instagram: / lamawebdev
Discord: / discord
0:00 Introduction
0:44 Why testing is important?
2:34 React Testing Crash Course
16:00 Jest vs Testing Library?
17:00 React Testing Real World Example
34:40 React Jest Mock Async Data Testing Example w/ Axios
41:13 Outro
Пікірлер: 134
You made the whole process look extremely simple. Great tutorial, thanks!
The testing library gets updated/refreshed so frequently, your video was the most relevant and straightforward. Thanks so much!
For those having issues with Axios in jest, put this in your package.json user the 'scripts' object: "test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", It worked for me, hope it works for you too.
You always explain things in a way that even a kid could understand. This was very helpful. I'm using Mock Service Worker as recommended in the Testing Library docs, so I guess my mock API will be setup differently. I just have to figure that out. Thanks for the tutorial!!!
Extraordinary video, all the content is very useful because you explain in a perfect way all the concepts of testing. It would be great to see other videos on this important topic. Immensely grateful.
Tdd was always weird to me but after this tutorial it makes sense. Thank you so much.
Yes!!! Exactly the kind of video i was looking for and from an amazing channel that I like. Just started watching recently and your video tutorials are really good!
You’re a great teacher. Few minutes into your video, I understood testing without prior knowledge of JS testing
Okay, while I'm riding the high of confidence you gave me about TDD, lemme start working on a react project with this approach :) . Thanks, Lama Dev!!
Excellent tutorial, love it, thanks Lama Dev. For anyone struggling with JEST intelli-sense not coming up in Visual Studio code.(automatic methods and variables suggestions popping up) Just add a file named ' jsconfig.json ' at root level i.e in your top project folder and paste below code in that file. { "typeAcquisition": { "include": [ "jest" ] } } Probably restart VS code to be sure it got embedded.
Thank you for your simplicity. You make it very easy to assimilate.
love your contents ! and waiting for more test tutorials with the project you have built ! 🥰
Nice tutorial. Explained everything so well and was easy to understand.
This is a GOLD content. Thanks Lama! Please make videos with TDD :)) I will definitely watch all of your videos!
Nice one from Genius Lama. Many thanks for wonderful lectures you dish out.
Great tutorial!🔥🔥🔥 Learned a lot 👍👍👍. Thanks so much and hope to learn more from you in the future.
Right, it’s hard to find relevant KZread tutorials because everything in the tech world is changing so fast and things get old too quickly. HOWEVER! This is the best React Testing tutorial I have come across so far. It’s relevant, to the point, and super easy to follow along. I highly recommend going to the git repo, downloading it, deleting the test file, and follow along. That way you can learn how to test without getting overwhelmed with learning the components too. 10/10
Liked before watching because I know this is gonna be an amazing video! Thank you!
you are amazing i never saw a tutorial like that with a nice explanation
Thanks Bruno! Amazing playlists. Thanks for your time
Wow!! This is world class content 👑. Looking forward to more testing tutorials. Integrated testing 🔥 Redux 🔥 Node backend 🔥 But it is just a wish 😭😭😭
That was great 👍 need more videos on testing library and please also mentioned source
Lama, thank you. I learned so much from your videos.
Awesome video we would like more content like this testing and integration testing
Wow! It's really a great video about testing. We're expecting a series video about testing PLEASE... 😍😍😍
Entrance Song👍👍 I knew Jest and react testing library but I watched the course again.
AWESOME VIDEOS, We would like to have more videos on react testing. Thanks
This channel without any other source can make you a full stack developer. Again great job and amazing content Safak.
@diegocodes1202
2 жыл бұрын
Don't come here talking shit man
thx! always waiting and watching!!
Big Fan Lama, amazing content as always. Just a request, if you could make some tutorials on web3 and dapps development.
Very good tutorial as always ! Thank you
it's great one. We need some more real world examples. Thanks!
Awaiting for this 😇 thank you
good job man, more testing video with this library is appreciated! :) Can you do also a video with react and cypress? you suggest this library for testing?
Thank you friend for this amazing tutorial ❤️
Excellent tutorial. Thanks a lot!!
Ayy... Lama back again with another banger..
Thank you so much for the excellent content 👍👌🙌❤💕
Wow this is very Goood tutorial. Thank you. and Could you explain cypress end-to-end testing also?
I was afraid of test but your tutorial is easy to understand.
great video and good code organization
Thanks for your simplicity
Awesome tutorial !👑
This was extremely helpful!
GREAT Video!! Man, I HATE unit testing!!! Now I joined a new team and they assigned me to get the teams unit test coverage to be at least 85%. All our code is in React, so I am hoping that I can use this test library because it looks a lot more fun than the regular jest. And that Wallaby VS Code extension is awesome! I might even do some unit testing on the weekends? uh, maybe once or twice only. :-) Definitely subscribed and liked!! I really like everything about his testing style. Good pace, great examples! I hate super simple examples. And the length isn't too long, well done sir! #HatTip!
Thanks a lot this made me understand how TDD works
Good introductory tutorial using TDD.
This is what i needed right now
I literally love your projects,,, please more MERN projects
nice tutorial and easy to understand
Good Tutorial for beginners. Thanks
Great. Want more in this topic
Obrigado, meu brother! God bless you!
Thanks it is cristal clear to me now
LamaDev is the man of the year!!! 🥰
Thanks so much lama dev, i have always wanted to learn tdd but didn't knw how to go about it 😢
very nice. please create another tutorials about react testing library 💪🤟
This was awesome
Thanking you! 👏
Thank you friend for this amazing tutorial you are my hero :) , could you please make restaurant management api using node js
Thanks lama.
Loved it❤❤.. thank you so much sir, can you please make videos on react with redux saga sir
Great job, for real 👍
Hi, thank you for the content. I like to ask, can I apply the same concept as in this video to test React Native App?
Thank you very much. I would also like to see a video on testing sign-in with Google and using some kind of authentication. I also want to see more videos on React or Next.js projects with MySQL
Earned my subscribe
really helped me out with this one thanks...btw, do you do any BDD by any chance...something with Cucumberjs and gherkin would really be much appreciated...thanks for all your vids
Thanks for the good content, I have a question about using Jest on Nodejs app, after a long search I found that I have to use babel as a compiler (babel-jest) to be able to work with ES6 syntax. are there a way to deal with it the same way you did here for react app? Thanks a lot 🙌
This help me a lot to understand how its works , its a very good tutorial and simple. All testing cases need to be very methodical right? This take me a lot of time to made it, now I understand why some companies don't have tested applications, BTW I don't know if I'm right but it's necessary to make a test to check if error message will visible in error case right? I wanna try to make it that test.
thanks alot
a really great tutorial, thank you so much! I was able to follow and understand up to 36th minute. Why do we create a __mocks__ directory and an axios.js file in it and not use them?
damn, are you a demi god ? this is world class content.
More testing pleaseeeeee
Wonderful.
ooh sheeshhhhh here it is!
@Lama Dev...kindly make complete course on Jest Testing
hey, i have a very often crucial question. i have to test a component which gets a setState function as a prop, how can i mock this setState function while testing the component?
mocha chai for backend please, because you You explain the topics very well. and We are waiting for examples on redis topic (:
Love from India.❤️ Your teaching style is just awesome. Much better than the millions of web dev related youtube videos, the way you explain every single little thing with too much simplicity is just beyond admiration. Please start uploading the playlist of web technologies i bet you will be the one of the most successful and the most Praised youtuber in the upcoming years.We need that the most. God bless you ❤️
Yoo, thanks, now All my react counters Will be tested hahaha ver Nice video
Awesome
This is amazing, and among other things I learn English
wow this is awesome and great looks cool and please lama can you create an app with email verification using the MERN STACK?
Good Video, Good Explenantion, Good Content and My good comment.
hi, i got error like could not find react-redux context value; please ensure the component is wrapped in a but i also wrapped by provider within store and i change old to latest version please gave me a any solution
this guy reads my mind 😂
Wow Lama.. Can you make react developer tool usage video
great tutorial on internet of jest
Maybe you can do the next of this with redux passing data to a component in testing ?
When i am giving a command yarn test or npm run test it is showing error missing test sctipt.. Can anyone tekk me solution of this
How to test onclick or a function without passing it as props ?
Make one video for node js Testing. Means how to test backend in MERN Application
Need more testing videos 😞
How much time it take to learn complete MERN stack if a person can dedicate 10 hr per day
Are you going to do a tutorial on react native
Thank you for this wonder full testing video ca you please create with redux toolkit
Can we have a video on svelte testing?
i want to know. when did u start learning in this field
Why do we need to perform testing operations?
Please what microphone are you using for this video