Brad,, I just got a new job (with the help of your videos, of course). One of my first assignments at my job was to create a form with Material UI. I went through a bunch of docs online, but still didn't understand the grid system. I went through your crash course in a half hour and learned what I needed to finish. Thank you for the videos.
Thank god this is free. Just watched a series of same topic that stopped halfway because the rest of the series is behind a paywall. You're a good man! Thank you!
you are a legend, Brad! I have just added unit testing to my project to check the whole js file with database calls (had to wrap the file and add custom database call functions to imitate calls and response). Jest tests are great since I no longer need to manually test for cases like I used to for previous 2 years!
Your tutorials may be the best! Your concise presentation, your habit of citing requirements for doing X, and how you organize concepts with top-level descriptions that accompanies details are helpful. My favorite part of your presentation style is how you say a lot with very little but elaborate where necessary with minimal redundancy. Another Example: "We could have installed JEST globally and use JEST commands, but here we install JEST locally and use a script" -- that is extremely useful for beginners learning on their own who may become frustrated if they don't know to look for the difference while exploring other resources.
YES. I just finished your crash course videos on Node and Express, next on my list was Jest, i search it up and was so relieved to see that you made a video on it as well. You're the best on the web, Brad!
I wanted to watch this video for 10 minutes and continue watching tomorrow but this video was so mesmerising that I completed watching full video. Thank you Brad😊
Hey Brad, thanks so much for these videos! I've been following for years, and attribute half of my success in landing a job as a software engineer to looking up most missing info/references from your content :) Despite being on the job for 9 months now, I still find myself struggling to write unit tests, and turned to this video for a refresher. Seems like a great intro/beginner tutorial, thought I have a hard time finding any material online that really gives a solid intermediate-to-advanced level of Jest education. If you think it would be worthwhile, I would personally love to see an updated, comprehensive Jest tutorial that defines variables via DOM traversal and testing nested if/else conditions, explains ShallowWrapper vs ReactWrapper, and tests updated views after changing state, etc. Again, I haven't seen anything like this done before, so might be something to look into - and I know I'd certainly appreciate having a high quality reference point in the future as well! Thanks for the time, keep up the amazing work!
Love your courses Brad, I have been a big fan over the years and I suggest your awesome courses to all of my friends and colleagues, you have massively helped so many people in need of clearing concepts in simple language. Big love from India 🙏
Thank you! I recently got hired as a developer and your videos have helped me a lot! The way you describe things makes it easier to grasp the concepts, keep up the good work :)
This is a great intro to Jest, thanks. I would really like to see a video or series about how to use this in an app or more on test driven development practices generally.
Thank you very much for this tutorial and everything you publish! It's so helpful since you can explain very well, have the right speed and explain in an order that just makes you understand everything easily. I've been working as professional in a React project, have many years of Java experience and still learning Javascript, Typescript and everything and have been learning by reading code from our projects and RUclips tutorials. I've written a lot of tests, but wanted to get a good foundation on Jest. This tutorial has just been perfect for this purpose.
I really like that this video is generic JavaScript - It is NOT tied to frameworks like Angular, React, or Vue. This let me focus on JEST, instead of the frameworks.
That would never happen. I have already turned down pretty decent offers. This channel means much more to me than just money. The amount of people I am able to reach and help in any way is one of the most important things in my life
35:00 - reversestring has nothing to do with lower case. reversestring('Hello') should just be compared to 'olleH'. The correct way. But the rest of the video is just perfect. :D
Very nice and informative video Brad. I also watched a tutorial on PluralSight but this is far more better. Thanks a lot. I request you to bring a comprehensive video on Jest & Enzyme.
I have a simple question. When someone ask ME where do you learn web dev things, i tell them Traversy Media, but where do/DID YOU learn all this stuff... you are awesome by the way
WOLV Hey, is r/webdev on reddit 'the one ' for annountsments on tech and i wanna now what are good web sites for always kept up to date with web dev tech, and what do you mean by documentation, am failry new to this so sorry for asking
MrBadcompany00 Just follow tech you're interested in for example: JavaScript, Node.JS or PHP. If there's a new framework then just read the documentation provided with it 😁
I love Brad but JEST is seriously bad. None of these tests are even IO/CPU bound. Can you imagine a project with hundreds of unit tests and automation? I'd rather eat a bullet
This is amazing and you are one of the best tutors on youtube. the only question I have is, how to run a single suite? or a single file other than running everything together. In case we have hundreds of files, we don't have to run everything together. If Someone can help me here to understand, how to do that.
49:40 How can the arrow functions variables initDatabase and closeDatabase be used before they were declared and assigned? Is there some special syntax for testing files?
if there is one function which takes multiple argument as an array and use console.log to print multiple values separately then how to test it. eg. function (input){ for (let i = 0; i < input.length; i++) { if (input) { console.log(input[i]); } }
Hello. I am getting a TypeError: Cannot read property xxx of undefined. When I update my jest to 26.1.0. Otherwise it's working fine with jest 14.0.0. The file that it is throwing as undefined is present in my node_modules.
56:04 PLEASE !!! don't ever say sorry bro, contrary you are a LIFE SAVER and we should all of us thank you 👍👍👍👍
I vibe with this comment SO hard
Couldn't agree more! However now, you must say "sorry" for saying "sorry". :-)
I got placed in Thomson Reuters.
A many many thanks to you sir, keep giving us such education always, I have learned a lot from you.
Thank You.
Brad,, I just got a new job (with the help of your videos, of course). One of my first assignments at my job was to create a form with Material UI. I went through a bunch of docs online, but still didn't understand the grid system. I went through your crash course in a half hour and learned what I needed to finish. Thank you for the videos.
This made far more sense to me than the 4 hour course I just watched on Pluralsight. Thank you and please do more.
I love this. I already feel so much more confident with Jest.
what a life saver! got interview in 1 hr and this will help a lot
gold. absolute gold
How did it go ?
I watch a lot of jest testing videos but I definitely say that you are the best instructor
Thank god this is free. Just watched a series of same topic that stopped halfway because the rest of the series is behind a paywall. You're a good man! Thank you!
you are a legend, Brad!
I have just added unit testing to my project to check the whole js file with database calls (had to wrap the file and add custom database call functions to imitate calls and response).
Jest tests are great since I no longer need to manually test for cases like I used to for previous 2 years!
I don't know how many times I've already wrote this comment under one of your videos, but: Thanks a ton, Brad! You are the best.
Now I've realized why is it called Jest. It's 'Test', but instead of T, there's J - for JavaScript
Surely you must jest.
mind blown
been watching this guy since last year, now i am employed.
Your tutorials may be the best! Your concise presentation, your habit of citing requirements for doing X, and how you organize concepts with top-level descriptions that accompanies details are helpful. My favorite part of your presentation style is how you say a lot with very little but elaborate where necessary with minimal redundancy.
Another Example: "We could have installed JEST globally and use JEST commands, but here we install JEST locally and use a script" -- that is extremely useful for beginners learning on their own who may become frustrated if they don't know to look for the difference while exploring other resources.
YES. I just finished your crash course videos on Node and Express, next on my list was Jest, i search it up and was so relieved to see that you made a video on it as well. You're the best on the web, Brad!
Appreciate on your video content. As a beginner picking up Jest, your guide is really helpful. Thank you!
this guy is really good and helpful
make sure you play 1.5 speed while watching
I wanted to watch this video for 10 minutes and continue watching tomorrow but this video was so mesmerising that I completed watching full video. Thank you Brad😊
This is the first video I have never skipped in any point.
Jest is the best JavaScript testing framework in my opinion. Thank you Brad for video!
Perfect, this tutorial has examples and is easy to follow. Thanks!
Hey Brad, thanks so much for these videos! I've been following for years, and attribute half of my success in landing a job as a software engineer to looking up most missing info/references from your content :) Despite being on the job for 9 months now, I still find myself struggling to write unit tests, and turned to this video for a refresher. Seems like a great intro/beginner tutorial, thought I have a hard time finding any material online that really gives a solid intermediate-to-advanced level of Jest education. If you think it would be worthwhile, I would personally love to see an updated, comprehensive Jest tutorial that defines variables via DOM traversal and testing nested if/else conditions, explains ShallowWrapper vs ReactWrapper, and tests updated views after changing state, etc. Again, I haven't seen anything like this done before, so might be something to look into - and I know I'd certainly appreciate having a high quality reference point in the future as well! Thanks for the time, keep up the amazing work!
Excellent introduction. Looking forward to the advance course!
Love your courses Brad, I have been a big fan over the years and I suggest your awesome courses to all of my friends and colleagues, you have massively helped so many people in need of clearing concepts in simple language. Big love from India 🙏
Awesome video thanks a lot Brad ...hopefully understood concepts,please let’s go and deep dive into jest+puppeteer
Thank you! I recently got hired as a developer and your videos have helped me a lot! The way you describe things makes it easier to grasp the concepts, keep up the good work :)
I love you traversy media
I love you.... saved me dude...im in Interview mood for past 3 weeks... . ......
Great introduction to Jest Testing - really enjoyed the flow and content :)
When testing asynchronous code using async/await, you don't need the expect.assertions() line either.
same thing, I just want to say
Your videos are clear, concise, and super useful. Thank you so much for everything you do Brad!
This is a great intro to Jest, thanks. I would really like to see a video or series about how to use this in an app or more on test driven development practices generally.
Thank you very much for this tutorial and everything you publish! It's so helpful since you can explain very well, have the right speed and explain in an order that just makes you understand everything easily. I've been working as professional in a React project, have many years of Java experience and still learning Javascript, Typescript and everything and have been learning by reading code from our projects and RUclips tutorials. I've written a lot of tests, but wanted to get a good foundation on Jest. This tutorial has just been perfect for this purpose.
Thank you so much!! This is just perfect! Got a headstart in Jest within an hour.
It was a fantastic journey through testing basics! Helped a lot!
I really like that this video is generic JavaScript - It is NOT tied to frameworks like Angular, React, or Vue. This let me focus on JEST, instead of the frameworks.
Thank you for saving my time learning all this from jest docs)
Hey Brad please dont quit or give your channel away! Thanks
Did you saw Devtips video recently lol ?
That would never happen. I have already turned down pretty decent offers. This channel means much more to me than just money. The amount of people I am able to reach and help in any way is one of the most important things in my life
Bless you man. You videos are of great help.
Simranpreet Singh last i saw he had funfunfunction on it. Never worry about me abandoning the channel
Hey Brad, yesterday I purchased your Mern course on Udemy, I am really thankful for your content in that course and also for this RUclips channel !
35:00 - reversestring has nothing to do with lower case. reversestring('Hello') should just be compared to 'olleH'. The correct way. But the rest of the video is just perfect. :D
This guy is awesome. I have no idea why he has just this number of subscribers!
All of your videos are very interesting and stick to the point. thank you.
still relevant after 4 years.. great video 😍
That was great. Your content is just gold. Thank you for sharing Brad.
Thank you so much! It's kind hard to find a really good class about jest and you got to explain perfectly what I was looking for :) .
A test environment setup with in-memory MongoDB and mongoose doing REST end point testing will be extremely helpful.
This is awesome. I am in the process of learning unit testing and this was a brilliant intro video tutorial.
Thanks :)
Great refresher; Really helped me add some robustness to my test suites today.
13:16
"Or as 99% percent of you call me - Tra↓ver↑sy↓"
Im dyingggg 🤣🤣🤣 That's totally me!
You should use "slack off" instead of "slack on" Brad as far as I understand. But that is a small detail. You are an excellent instructor Brad!
As always, great video Brad, to the point, concise and explanatory. Thanks!
Very nice and informative video Brad. I also watched a tutorial on PluralSight but this is far more better.
Thanks a lot.
I request you to bring a comprehensive video on Jest & Enzyme.
I have a simple question. When someone ask ME where do you learn web dev things, i tell them Traversy Media, but where do/DID YOU learn all this stuff... you are awesome by the way
MrBadcompany00 Reddit, GitHub, Medium and ofcourse documentation.
WOLV Hey, is r/webdev on reddit 'the one ' for annountsments on tech and i wanna now what are good web sites for always kept up to date with web dev tech, and what do you mean by documentation, am failry new to this so sorry for asking
MrBadcompany00 Just follow tech you're interested in for example: JavaScript, Node.JS or PHP. If there's a new framework then just read the documentation provided with it 😁
I would like to see complex test such with classes and stubbing mocking dependencies like fetch data or write data to filesystem.
Incredible. When can we expect(React Unit Testing w/ Jest and Enzyme).toBeTruthy( )?
yes please. This one sir. Right here.
yeah, I'm currently struggling with how to test functions inside function components (and how to pass the props to them).
+1
Thanks, man! Testing has always scared me. The fear is gone now!
Thanks for the examples of testing asynchronous code !
Thank you for making this video - really really helpful and very well explained. You are exceptionally clear.
Fantastic Tutorial for beginner! Great Job!
Thank you for this video.. You have made Jest a lot easier for me !!!! Thank you!
Excellent video. Liked before watching, and I know I won’t be disappointed.
haha same here
Explained it in a very simple manner. Good work!
Brad please make a video on how to test dom manipulation with jest because that its really difficult to understand. You re the number 1
How can/do you know/understand all these things??
Jibz Just don't stop learning
he read docs. thats what a good developer should do.
experience
Thank you so much. I've been waiting for this Jest tutoruial!
Please make more Jest videos! Maybe testing a React app with a mocked database? I would love to learn that. You are great!
Jest has pretty good documentation on that.
@@slicerabbit6166 hey, if you it have handy could ping the URL
Excellent beginning for jest
l loved it.
thank you so much 🙏🙏
how do you get Visual Studio Code to show the list of available functions at 6:12
Could anyony say why in 25:20 async did't work ? i get error like Cannot read properties of undefined (reading 'name') ?
Thank you Brad. Your videos are super helpful 👍
Jest is extremely slow. 8:42 - 1.5s for 2 asserts and 10 lines of code?
I love Brad but JEST is seriously bad. None of these tests are even IO/CPU bound. Can you imagine a project with hundreds of unit tests and automation? I'd rather eat a bullet
hey brad any video on docker???
do you prefer xampp, vagrant or docker?
@@911madza vagrant
He has video on docker.
This is awesome. For the more detailed version could you please include function mocking
32:35 How do you do it to have autocomplete here, I already tried some stuff but its doesnt work ..
Thanks a bunch !! This was super helpful for a newbie like me
This is amazing and you are one of the best tutors on youtube. the only question I have is, how to run a single suite? or a single file other than running everything together. In case we have hundreds of files, we don't have to run everything together. If Someone can help me here to understand, how to do that.
Really nice introduction to jest... Thanks dude
Is there a second part yet coming? please...
how to enable ECMAScript module?
Sir can you also please let us know what extensions you use in the visual studio code , so the typing part becomes less for us too!
49:40 How can the arrow functions variables initDatabase and closeDatabase be used before they were declared and assigned? Is there some special syntax for testing files?
Great video! Helped me a lot! Thank you for uploading it for free!
When testing API request calls, it is recommended that you don't make actual API calls but instead mock the calls. There is a way of doing that.
Wow, thank you so much for sharing and taking so much time to produce.
22:25 Async testing with axios
Guess what? You forgot to tag the Javascript Cardio videos.
But that ain't hard to find since you're all over RUclips.
Love
Thanks a lot. Learn a lot from your unit testing lesson
May I know which VS extension that makes you able to auto-complete library provided methods? Thanks a lot.
Brilliant tutorial, really well explained! Thanks
Thanks so much... You're my university!!
great course. include mock functions also in this
is there a pratical difference between the use of test/expect and the more common sequence describe/it/expect?
if there is one function which takes multiple argument as an array and use console.log to print multiple values separately then how to test it.
eg. function (input){
for (let i = 0; i < input.length; i++) {
if (input) {
console.log(input[i]);
}
}
You're more amazing Brad Traversy.
Wow, This is a awesome.
It would be great help if you could also do advanced jest concepts like snapshot testing and all.
thanks for your tutorial brother, i really aperciate what you're doing.
Hi Brad what about a video on Machine Learning. Thanks
Traversy Media, You are the Best
I'm not getting auto complete for Jest properties and methods, did you install any plugin for VS Code ? Please clarify
This was great, thanks for the walkthrough :)
Hello. I am getting a TypeError: Cannot read property xxx of undefined. When I update my jest to 26.1.0. Otherwise it's working fine with jest 14.0.0. The file that it is throwing as undefined is present in my node_modules.
in chunkArray function, the constant last is an integer or an array?