Introduction To Testing In JavaScript With Jest

  Рет қаралды 527,439

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 380
@drchrisntsako1339
@drchrisntsako1339 2 жыл бұрын
I'm someone who don't comment on videos but whenever I search for a video and see yours, I always choose you. you are the best man
@jbruell94
@jbruell94 8 ай бұрын
1000% agree.
@deansprivatearchive
@deansprivatearchive 3 жыл бұрын
This is a developer that truly knows what he's talking about, nonstop, in facts, and fast - short and simple, bite-sized tips to all development. Master branch, honestly.
3 жыл бұрын
Nope, he's a normal dev just like us. He just has the power of editing. He got a video on that.
@deansprivatearchive
@deansprivatearchive 3 жыл бұрын
​@ I know, that's not what I'm saying - No matter how much debugging he cuts out, the coding and aesthetics themselves are made by a developer that truly knows what he's talking about.
@juanbomfim22
@juanbomfim22 3 жыл бұрын
@@deansprivatearchive I agree. And what reinforces it is his incredible diction
@gainz6180
@gainz6180 Жыл бұрын
@whats the name/link of that video?
@hetroxity
@hetroxity Жыл бұрын
Kyle bro .. i love how you talk smoothly and going step by step without hurry..
@tracynnnn
@tracynnnn 3 жыл бұрын
Notes - test script: "jest --coverage" will detail what's being tested and what's not - Unit tests test the smallest part of your code - toBe() vs toEqual()
@chickenchoclates1971
@chickenchoclates1971 2 жыл бұрын
i love you mate...
@brunoichbinfdp
@brunoichbinfdp Жыл бұрын
thanlks a million times
@mauricioviera6
@mauricioviera6 4 жыл бұрын
Thanks. I'm going through a job interview and they asked me to run unit tests, so this is really helpful as a start. Really appreciate it
@aurumstinger4479
@aurumstinger4479 8 ай бұрын
Did everything go well??
@JamesQQuick
@JamesQQuick 3 жыл бұрын
Using this as a first intro to jest for me. Thanks Kyle!!
@ANDREPEIXOTO1
@ANDREPEIXOTO1 3 жыл бұрын
Me too. Thanks, Kyle! I'll have a technical interview covering jest and this video was helpful. Now I'm going to dive deeper into it.
@JohnMitchellCalif
@JohnMitchellCalif Жыл бұрын
I'm a testing expert, and I congratulate you. Your explanation is very clear and understandable! Subscribed.
@ВладимирНетот
@ВладимирНетот Жыл бұрын
so why the expert like you is watching tutorial for beginners?
@fragileglass9622
@fragileglass9622 5 жыл бұрын
That's awesome. I was just searching on Udemy for a Jest testing course when this popped up. Weird. I'd would really like to see more testing or production deployment ready based courses. Best practices for making app's well tested and properly staged for active use and deploy. It's a topic that is missed very often.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I agree. I want to try to cover more testing related information on this channel since I find it quite enjoyable.
@nerdiloo9863
@nerdiloo9863 5 жыл бұрын
AI : You're welcome. Human.
@BjornBrasse
@BjornBrasse 4 жыл бұрын
Please add more video's on testing. Perhaps a course specifically on this subject. I'm sure many people are interested!!
@Misfittykitty
@Misfittykitty 2 жыл бұрын
@@BjornBrasse I agree--I would 100% sign up for a full course on this by Kyle. I loved his React course, and recommend it!
@highestaccomplisher
@highestaccomplisher 4 жыл бұрын
OMG. I am a Manual Testing upping my technical skills to become an Automated Tester and it is the first video I see (after months of seriously researching a lower than beginner level tutorial) that really help me write my first Javascript testing script in 5min. Thank you so much.
@calebsirma3867
@calebsirma3867 11 ай бұрын
Never found a guy so smooth in explanation in 14 minutes.
@bama2619
@bama2619 11 ай бұрын
The video was in the search and I chose your video. I see your 4 years old video and think that you were tired at that time. In latest videos you are more energetic.). Great videos, Kyle. Thank you.
@michaelhuskey2608
@michaelhuskey2608 2 жыл бұрын
Definitely would be interested in more testing videos. A topic I only really became aware of when I started looking at job postings and my home made projects started getting more complex. Appreciate what you do!
@AnishSana
@AnishSana 4 жыл бұрын
This was such a clear and concise explanation; thank you!
@utkarshsingh.12
@utkarshsingh.12 Жыл бұрын
Within 14 minutes, this guy made you learn testing even if you know nothing about it. Thanks!!!
@tech3425
@tech3425 Жыл бұрын
It would be nice to have a Jest course for typescript and Express/React. Really helps us understand how to setup testing for our project
@DRocksRecords
@DRocksRecords 4 жыл бұрын
Dude! Test seemed like a mile away before I watch this... I get just enough of it to start trying on my own very nice... thanks
@FirstLast-gk6lg
@FirstLast-gk6lg 3 жыл бұрын
Came here for a refresher, last time i wrote tests was in school and i really enjoyed them then so excited to refresh my knowledge
@PGBlanks
@PGBlanks 3 жыл бұрын
I was broken after they introduced this to me at bootcamp, but you helped explain it very clearly! Thank you.
@aktp4796
@aktp4796 3 жыл бұрын
At least they introduced it to you.. I’m a recent bootcamp grad currently job searching and getting back to these necessary fundamentals after realizing how ill prepared I am.
@daurham
@daurham 3 жыл бұрын
Bro SAME
@daurham
@daurham 3 жыл бұрын
Looking at the mess and I’m thinking “sooo theyre functions..? But how.. & wtf is toBe” 😂
@joshr.2600
@joshr.2600 Жыл бұрын
I've watched plural sight for 1 hour. And YOU have explained this 10x better in 13 mins. U have my like n sub. If u have a paid channel. I'm ready
@jthomasaurus
@jthomasaurus 5 жыл бұрын
I am very interested in more testing videos. This was a great intro for me, and I’m at that point in my self-teaching to start getting into testing my code! Look forward to more.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you! I would definitely recommend getting stated practicing testing since I found it was a skill that took a ton of practice for me to get good at.
@hugoperez1318
@hugoperez1318 4 жыл бұрын
This was very well explained and demonstrated, great job Kyle! I think a lot of us would like at least another video going deeper into testing, explaining better practices, and whatnot. Great video, though.
@cengiz-ilhan
@cengiz-ilhan 3 жыл бұрын
he is teaching everything simple. AWESOME
@avidadedanton
@avidadedanton 3 жыл бұрын
Thanks! really nice video! *adds Test Driven Development to resume*
@martinag6607
@martinag6607 3 жыл бұрын
Thanks man!! Super easier to have the --coverage, super helpfull, and well explained!! Much appreciated!
@marsdwarf
@marsdwarf Жыл бұрын
Fantastic tutorial, I love that it's short. Thanks!
5 жыл бұрын
Amazing tutorial! I was afraid of start studying this topic because it seemed so hard. Now, this video gives me a more clear idea. Thanks!
@daviddada7771
@daviddada7771 2 жыл бұрын
You're really simplifying web development Thanks so much for this video
@DavidLeDuc1
@DavidLeDuc1 3 жыл бұрын
This is a really great intro to testing using Jest. It would good to see more testing videos, possibly ones that cover plain vanilla (no framework) javascript and testing functions that manipulate DOM.
@RogerThat902
@RogerThat902 5 жыл бұрын
Yes, would like more testing-related videos. That was great. I think my biggest issue is knowing what exactly to prioritize when testing because as you said, you can test almost everything, even though you probably never will.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I would say you should prioritize the core business logic of your code. Essentially whatever code is the most essential to your project should be tested first.
@nagasaran3856
@nagasaran3856 4 жыл бұрын
Good clarity is maintained throughout the video
@Jonathan_Henderson
@Jonathan_Henderson 3 жыл бұрын
Great content as always Kyle!
@NiceChange
@NiceChange 2 жыл бұрын
i know this was posted a while ago.. but wow. creating test made so easy..Huge thanks!!!!
@masihkarimi5952
@masihkarimi5952 2 жыл бұрын
Wow, that was amazing, I've got the complete concept of how the test case should look and work, Thanks for the great content Man !!
@AlexGrigoreDEV
@AlexGrigoreDEV 11 ай бұрын
Very helpful, even though there's a lot more to know about JEST, it's a well rounded primer. Thank you!
@deepumon.d3148
@deepumon.d3148 9 ай бұрын
Bro Thanks for this amazing video. Actually, I have to write JEST code in our organization. Your video helps me a lot. Please do more videos about JEST.
@kakitayuri
@kakitayuri 4 жыл бұрын
Really really good stuff dude! Coming from nearly a decade of professional Android development, moving to web work, I was hoping to find a succinct explanation about quick setup and coverage. Definitely a thumbs up and a sub from me. I know you're focusing on newer devs a lot, but even at the senior level needing a quick intro, very helpful stuff!
@vibonacci
@vibonacci 5 жыл бұрын
I'd definitely would like a video that writes a full test suite on a small but real-life project that shows how to write proper unit tests beyond the common a + b examples.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I really want to do this, but I need to find the right project first. Most of my KZbin videos are not large enough to make a full video out of testing them.
@vibonacci
@vibonacci 5 жыл бұрын
@@WebDevSimplified Ok. But maybe just a project where you test some very common use cases like logging in / auth, CRUD operations on a 'User' or 'Company'. Simple stuff that is very often done.
@aimablebancunguye9617
@aimablebancunguye9617 Жыл бұрын
Wow! you are super great, i was struggling searching for jest course. thank you for your video.
@nataliadziedzic9278
@nataliadziedzic9278 4 жыл бұрын
Thanks for this video. If you are thinking about continuing this series then I think tutorial on testing in React would be a great help for newbies ;)
@maxiequa567
@maxiequa567 5 жыл бұрын
And now we understand Jest, thank you Kyle! +1 for more testing videos.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I'm really glad you enjoyed it. I can't wait to make more testing video.
@maxiequa567
@maxiequa567 5 жыл бұрын
@@WebDevSimplified You really do simplify development for the web! Have already learned so many new and practical nuggets of wisdom. Where do you/have you gained your knowledge from? Are there any resources (other than your awesome videos) you would suggest ?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@maxiequa567 I learned nearly everything I know about web development from KZbin videos, personal projects, and my job. I also read a lot of blogs/articles for more concept based things like writing clean code and testing.
@maxiequa567
@maxiequa567 5 жыл бұрын
@@WebDevSimplified Amazing. Do you have any blog recommendations?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@maxiequa567 Not really. I usually just google search for what I am looking for and read whatever blog comes up.
@phamlam4738
@phamlam4738 2 жыл бұрын
Thank you very much for this short video. looking forward to see more from you
@AlexTechie
@AlexTechie 5 жыл бұрын
Great video! I've known about testing for a while, but I (personally) can't think of a place I'd use it. I know that's a me-issue; not knocking testing. Hopefully, in your next video on testing, you do can walk us through some real world use cases. Keep up the good work! 👍
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Testing us useful anywhere you have logic in your code. Literally anything in your code can be tested and you should definitley test the critical parts of your code
@spongebobsquarepants4576
@spongebobsquarepants4576 5 ай бұрын
Very good and simple explanation. Thank you!
@vanessabano7180
@vanessabano7180 2 жыл бұрын
This was great! Yes, definitely more testing in JavaScript with next videos please!
@sessionswithtemitope
@sessionswithtemitope 4 жыл бұрын
Thank you, your explanation is really simple. I hope more testing video comes up
@MM-hs9vp
@MM-hs9vp 3 жыл бұрын
I was thinking about unit test is so hard for me before I did it, This video makes me feel easily to against testing.Thank you !
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 Жыл бұрын
Thank you! Very clear and concise explanation! 💛
@yesweet
@yesweet 5 жыл бұрын
You are lucky if you have someone like WDS besides you, and we are lucky as we have WDS on KZbin👏
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you. I am planning to stick around for the long haul, so you don't have to worry about me leaving your side.
@davitdarsalia7641
@davitdarsalia7641 3 жыл бұрын
Watching in 2021 , The most useful tutorial , Thanks man!
@mikmikmikmijtheshy8577
@mikmikmikmijtheshy8577 2 жыл бұрын
You just saved my life!! Thank you!!
@vanlifecara
@vanlifecara Жыл бұрын
I'm in QA and just learning JavaScript but need to learn Jest for work, this was very helpful
@TremaineBuchanan
@TremaineBuchanan 4 жыл бұрын
Great video! Was very helpful in starting my journey in writing tests for my code.
@rafay9254
@rafay9254 4 жыл бұрын
Thank you! I love the way you explain everything
@isabellebidou
@isabellebidou 3 жыл бұрын
you are so inspiring and such a great teacher! thank you for your hard work
@FED_workerz
@FED_workerz 11 ай бұрын
Iam watching many testing tutorial but i don't understand then i see your your testing tutorial video then i watch i understand sir teaching is good 😊
@filemomb984
@filemomb984 5 жыл бұрын
Man, thank you a lot, yours tutorials are incredible!! Congrats!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@ruixue6955
@ruixue6955 Жыл бұрын
1:38 npm init -y 1:47 install jest - *npm install --save-dev jest* 2:05 *configure test to use jest in package.json* 2:10 command of running all tests - *npm test* 2:18 first test file 2:55 test code
@svag_g
@svag_g Жыл бұрын
So we need to to install jest everytime for every project we are testing??
@ruixue6955
@ruixue6955 10 ай бұрын
@@svag_g yes, according to my understanding
@Cloud-577
@Cloud-577 4 жыл бұрын
Thank you for making this video! I have been curious about automated tests but didn't know where to start. I'm highly interested in a test series💕
@JohnAussieMate
@JohnAussieMate 4 жыл бұрын
Thanks Kyle, You are really helpful with your videos, great content, well paced and I love the simplicity of how you make something complicated look simplified. And yes, I would love more videos on testing, I believe it to be necessary and a must for every developer out there. Thanks again mate!
@FelipeBarbosaGoogle
@FelipeBarbosaGoogle Жыл бұрын
Amazing job for beginners like me, thanks.
@rakanes
@rakanes 3 жыл бұрын
More!! Need a whole series, and also enzyme + jest please!
@maheshr5282
@maheshr5282 2 жыл бұрын
The explanation was clear and upto the point. Thank you so much for the video.
@wepranaga
@wepranaga 4 жыл бұрын
this guy is always make things easier
@space_monkey125
@space_monkey125 4 жыл бұрын
This is an awesome tutorial would want to see more testing tutorials
@mohamedelidrissi2839
@mohamedelidrissi2839 5 жыл бұрын
Just came across this channel, not disappointed!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you! I hope you enjoy the rest of my content just as much.
@KINGQABIL
@KINGQABIL 3 жыл бұрын
Thanks, man Your explanation is another level bro
@shashantr.9380
@shashantr.9380 Жыл бұрын
I really appreciate your dedication and hardwork that went into your video titled 404 Not Found (Coming Soon).
@supriyantapoddar6129
@supriyantapoddar6129 5 жыл бұрын
Want more advance testing videos. Your videos help us a lot. Thanks a ton!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks! I hope to explore more testing videos in the future for sure.
@marcusotter
@marcusotter 5 жыл бұрын
Wooo! Been looking forward to this video :)
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I hope it didn't disappoint.
@marcusotter
@marcusotter 5 жыл бұрын
@@WebDevSimplified Of course not :) Very informative, thank you!
@hamzahahmad1670
@hamzahahmad1670 4 жыл бұрын
Quality content, as usual. Thank you. If possible, it would be great to see some React testing as well.
@pastorfred2543
@pastorfred2543 5 жыл бұрын
I liked the video before watching because I trust Sir Kyle will deliver for sure.. Anyone else?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I hope I did not disappoint.
@pastorfred2543
@pastorfred2543 5 жыл бұрын
@@WebDevSimplified Yes please.
@xenialxerous2441
@xenialxerous2441 4 жыл бұрын
Hey Kyle! I know it's a bit late to post a question/comment for this video(considering the date of publish for the video) nevertheless, I have been watching your tuts and coding videos and I genuinely enjoy watching your videos and learn a ton of new things and concepts. I particularly love the specific topics like regex, testing, solid principles etc that you cover, which frankly I didn't came across on most other coding pros' channels. I love these indepth programming topics by the way and hence, it automatically draws me to your channel every now and then. Main question I had was, "what could be the main difference between a normal software(app) testing and the full on Pentesting?".. Generally, I am aware of the definitions and the underlying principles but, I am quite assured that, your answer would defnitely shed some more light on the topics and help me go further in these topics. Thanks for everything, and love you!
@hamed4451
@hamed4451 4 жыл бұрын
That's great kayl ... why you didnt continue this series?😟 Can you create " test(with jest) in react " tutorial series?
@abe10
@abe10 4 жыл бұрын
Yes please. More testing tutorials :(
@andylib
@andylib 4 жыл бұрын
That‘d be dope 🔥
@deansprivatearchive
@deansprivatearchive 3 жыл бұрын
kyle*
@hamed4451
@hamed4451 3 жыл бұрын
@@deansprivatearchive ooops.my bad , but take it easy :)
@connoisseurofcookies2047
@connoisseurofcookies2047 3 жыл бұрын
@@deansprivatearchive Punches drywall
@alexeymalakhov5244
@alexeymalakhov5244 Жыл бұрын
Damn, it looks exactly like a postman sandbox! Clean and functional! I like this kind of automation
@metagamingOficial
@metagamingOficial 4 жыл бұрын
Thanks Kyle, that was a nice start =)
@ahnaffaiyaz1892
@ahnaffaiyaz1892 2 жыл бұрын
Great explanation, thank you very much.
@jamezjaz
@jamezjaz 4 жыл бұрын
Great video! Thanks for sharing, Kyle
@terenceroberts5240
@terenceroberts5240 4 жыл бұрын
Another Excellent Video.
@kieranbarker1902
@kieranbarker1902 4 жыл бұрын
Awesome video, man. Cheers! ❤️
@stanleyagwu4818
@stanleyagwu4818 3 жыл бұрын
Thanks so much. You are, and have been doing a great job for us! More grace!!!
@conorbyrne3519
@conorbyrne3519 5 жыл бұрын
Your videos are great man! Keep it up!
@BijouBakson
@BijouBakson 8 күн бұрын
In computer years this should have become fossil but still works. I sure learned something today! Thank you for your work :)
@nerdiloo9863
@nerdiloo9863 5 жыл бұрын
I admit I don't unit test much but I'll give this a go - i like the console and html output
@stith_pragya
@stith_pragya Жыл бұрын
Thanks Bro for the video...........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@alistokes2308
@alistokes2308 3 жыл бұрын
Thank you for the info! This was really concise, and perfectly helped me figure out this stuff.
@RayPereda68
@RayPereda68 5 жыл бұрын
Helpful video. Please create more testing videos. In particular, snapshot-based testing would be of interest.
@ValchyGaming
@ValchyGaming 3 жыл бұрын
This video makes me feel productive
@Any_key404
@Any_key404 5 жыл бұрын
I just recently learned unit testing with Jasmine, I’m glad to see someone teaching this as I had to basically accidentally bump into it myself.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Nice! I am hoping to include some more testing into my future videos since I find it enjoyable.
@anishjoshi1999
@anishjoshi1999 4 жыл бұрын
loved your work!!
@semtristan3170
@semtristan3170 2 жыл бұрын
Thank you for this!! I had a complete brain fart, I subscribed because I will be back!!
@SohailKhan-gu2du
@SohailKhan-gu2du 3 жыл бұрын
Thanks man ❤️.. Helped a lot... Please create testing videos for entire react and node-express application with best practices ❤️... Lots of love brother.. Great work ❤️
@MoMoneyMoritz
@MoMoneyMoritz 2 жыл бұрын
Thanks man, this was very helpful :)
@MG-bm5oj
@MG-bm5oj 4 жыл бұрын
Nowday testing is crucial. You cannot get a job if you don't know about it. I would suggest to make more videos like this but on complex projects to have a better idea of how useful it is. If it can be with react would be great. Thanks for you videos
@rangabharath4253
@rangabharath4253 5 жыл бұрын
Awesome as always. keep going
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@mohammadjavadaghazadehfard7873
@mohammadjavadaghazadehfard7873 2 жыл бұрын
Hi, Thank you. It was very good. please make more videos like this.
@nidheeshpv8300
@nidheeshpv8300 3 жыл бұрын
Dude, awesome! Thanks a lot. 💕💕
@go_better
@go_better 4 жыл бұрын
Thanks. So clear and understandable, really.
@cephoenix
@cephoenix Жыл бұрын
Thanks bro! Helped a lot!!!
@MegaVladikslavman
@MegaVladikslavman 3 жыл бұрын
Thank you a lot for your explanations! Reaslly find them very useful for me!
@sarfarazsheikh7378
@sarfarazsheikh7378 2 жыл бұрын
Thank You Very Much Sir
Why Vitest Is Better Than Jest
13:13
Web Dev Simplified
Рет қаралды 141 М.
JavaScript Unit Testing Tutorial for Beginners
48:32
Programming with Mosh
Рет қаралды 88 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
Testing In React Tutorial - Jest and React Testing Library
21:28
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Mocking Asynchronous Functions with Jest
21:50
Swashbuckling with Code
Рет қаралды 73 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Mocking a Database in Node with Jest
13:29
Sam Meech-Ward
Рет қаралды 70 М.
Introduction to Jest Testing | JavaScript Unit Tests
25:30
Dave Gray
Рет қаралды 33 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 97 М.
JavaScript Promises In 10 Minutes
11:31
Web Dev Simplified
Рет қаралды 1,8 МЛН
Jest. Unit Тестирование в JavaScript
1:27:05
Владилен Минин
Рет қаралды 171 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН