Тёмный
No video :(

Introduction to Jest Testing | JavaScript Unit Tests 

Dave Gray
Подписаться 335 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 76   
@sandroffdsantos
@sandroffdsantos Год назад
Been using Jest testing for web applications for almost 6 months and one thing that i´ve noticed on the web was the lack of a well structured tutorial about software testing and more specifically Jest Testing. So thank you Dave for the amazing content. Looking forward for a further chapters of this educational content.
@evanilsonp.8183
@evanilsonp.8183 5 месяцев назад
How do I use jest with my crud methods?
@evanilsonp.8183
@evanilsonp.8183 5 месяцев назад
Basically I want to test my crud methods
@chiragchhajed8353
@chiragchhajed8353 Год назад
Wow, I can't express how excited I am to see you've started a testing tutorial series! 🙌 I've been looking forward to learning more about testing for quite a while, and your videos are just what I needed.
@ahmad-murery
@ahmad-murery Год назад
Hello my friend, I don't do testing very often due to very strict deadlines, but it's always good to do so, 8:30 since we're passing an empty string to the join method no commas will be created, on the other hand, passing nothing(undefined) will add commas, Thanks Dave!
@TonyStark90743
@TonyStark90743 Год назад
Much needed video , please cover unit testing , integration testing, End to end testing , React test library , Cypress
@rdubb77
@rdubb77 3 месяца назад
Great video, I like how you use non trival examples and work in clean code principles.
@code_magpie
@code_magpie Год назад
Thank you so much. I have no words to appreciate the way you teach. word.toLowerCase().split('').reverse().join('') won't include the commas. So we won't need the replaceAll part. I know you know this, but you just came up with a quick solution. Mentioned it for the viewers.
@joker-wr8pt
@joker-wr8pt Год назад
I've a request sir please teach us how to test the api via jest I did the testing via jest for my express api but still have some confusion in stubs and mocks especially how we can test the api in the mvc structure like where our controller is interacting with services huge request
@mrbilchalan
@mrbilchalan Год назад
pls, continue this. thank you again, Dave.
@shubhamgupta-bl1tr
@shubhamgupta-bl1tr Год назад
Sir please make a video on how to test the react component which includes redux, custom hooks with mock api...I mean to test complex react components
@md-abid-hussain
@md-abid-hussain Год назад
Didn't see that comming. Excited for this series
@stevieholland3579
@stevieholland3579 Год назад
I am sure you get a million requests for topics, but could you please do a data structures and algos course? Basic linked lists, trees and graphs, big O, recursion etc. Your explanations are so in depth and helpful. I would love to see a dsa playlist at some point. Forgive me if you have this and I just have not found it yet.
@abc_noob
@abc_noob Год назад
Nice thumbnail 😂
@omidoyinayodeji9338
@omidoyinayodeji9338 Год назад
Oh thank you for this series. I can't wait for you to get to the advanced testing such as making network requests, redux , axios interceptors and others.....I'm watching every testing video you are making....
@OpossumPiper
@OpossumPiper 11 месяцев назад
Awesome intro to unit testing with jest. We use jest extensively at my job. This is a great way to get back to basics, understand how jest integrates with npm, and how to use it to write better code!
@alirezagarshasbi6557
@alirezagarshasbi6557 Год назад
I just started testing for an e-commerce web app created with next js and typescript i had hard time configuring jest and typescript for unit and component testing but setup cypress pretty easily i hope this video help me understand jest and testing better thank you Dave for great content
@LorenzoJimenez
@LorenzoJimenez Год назад
Real nice! Thanks. I will add the tests when the strings are null or undefined.
@frankkim9178
@frankkim9178 Год назад
Cannot wait to see the content about cypress vs jest, and when we need to use them. Lovely.
@MichaelShingo
@MichaelShingo 7 месяцев назад
nice intro to jest thank you, excited to integrate this into my Next.js app
@frankkim9178
@frankkim9178 Год назад
I am so happy that you started doing the test series!! Could I request a content about call by reference vs call by value vs call by sharing? It's quite confusing since it works differently in other languages.
@ichiroutakashima4503
@ichiroutakashima4503 Год назад
Seriously, Dave! Thank you so much for doing this! Your channel as really helped me grow and progress within my journey! I've been trying to find some content creator that would create content solely for JEST! Thank you so much!
@crixcodex
@crixcodex Год назад
Thanks Dave, you've really helped on my Javascript journey i do really appreciate... I wish you could talk about getting a job, cause i feel I've been writing codes for myself, but all same thanks alot
@bugraotken
@bugraotken Год назад
I have just finished a 3 hours long Cypress tutorial with E2E and Component testing. Let's see what Jest brings us =)) Thank you Dave!
@viditgoel2909
@viditgoel2909 11 месяцев назад
Thanks a lot for starting this series ❤, I can't thank you enough for this series as there almost no good tutorials around testing for web devs, I don't know much about testing yet, but it would be helpful if you could also teach e2e testing, basically enough about testing that is expected from a web developer.
@mrpaulishaili
@mrpaulishaili Год назад
So excited! Thank you sir! Will definitely be sharing on my LinkedIn once done with mine!
@imigi427
@imigi427 Год назад
Amazing, I need to wrote whole bunch of test in work. Really appreciate your work
@calebmbugua745
@calebmbugua745 Год назад
Thanks Dave💯 Pure Gold!
@user-sb9ve6zd6p
@user-sb9ve6zd6p Год назад
Thanks Dave, very clear explanation, I hope you'll continue this theme and also cover RTL.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thanks, will do!
@Mike-jq7os
@Mike-jq7os Год назад
To avoid wrong autocompletion, you can press the escape key and continue typing
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thanks - yeah, I kept forgetting it was going to autocomplete what I didn't want. I don't always look while I'm typing lol.
@hohugo2292
@hohugo2292 Год назад
looking forward the next, please update Dave, please!
@fares.abuali
@fares.abuali Год назад
Great topic 🎉 Thanks Dave
@Mike-jq7os
@Mike-jq7os Год назад
please please please, we need a full course
@fedirouatbi4908
@fedirouatbi4908 Год назад
Thanks for this great lesson hope we see react and typeScript tests soon
@user-ek9fn6gv4j
@user-ek9fn6gv4j Год назад
Hello Dave, thank you for providing such amazing content. I have recently begun learning how to write tests for web applications and have started using Vitest as my testing framework. Do you think this is a good choice for testing?
@_isaac_muniz_
@_isaac_muniz_ 11 месяцев назад
That was a good simple intro. Thank you.
@ojotimmy6002
@ojotimmy6002 Год назад
Thank you for the amazing content Dave. The timing is perfect.
@ayesigwar
@ayesigwar Год назад
Thanks Dave. Do you plan to do any DevOps videos for aws in future?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
I'm definitely interested in doing that. I haven't had many requests for it, but it might still be good.
@vlad_the_player
@vlad_the_player 7 месяцев назад
Nice explanation, thank you 😁
@abdullahsevmez42
@abdullahsevmez42 Год назад
thanks dave :) You're great! Will u continue this series. And will it come with nextjs or react. It would be perfect.
@a_maxed_out_handle_of_30_chars
thank you, simple and to the point :)
@cirolandia007
@cirolandia007 9 месяцев назад
Excellent video, thank you very much!!!
@TechDecryptor
@TechDecryptor Год назад
Really waiting for the videos
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 8 месяцев назад
Fantastic tutorial! Thank you so much! 💛
@MrZiyak99
@MrZiyak99 Год назад
was really hoping this would be with nodes new internal testing library since it's gonna be available out of experimental with node 20
@bensalemadel8940
@bensalemadel8940 7 месяцев назад
you don't need replaceAll(',','') already join with empty string will concat all string with an empty string
@juanmacias5922
@juanmacias5922 Год назад
This was amazing, thank you so much!
@akindipejohn2595
@akindipejohn2595 Год назад
Really appreciate your work 🙌
@leojohn6702
@leojohn6702 Год назад
Is this a new playlist? Will you create more about it?
@rpf23543
@rpf23543 Год назад
Thanks, awesome tutorial! To me one of the issues ist the frontend, responsiveness and such things. That cannot be done with jest, right? Selenium or others?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome! Yes, you're looking at the UI there. Possible automation but devs also use tools like Browserstack to visually look at different devices, too.
@vidhya821
@vidhya821 11 месяцев назад
for coverage, even if I dont write a test for reverseString, it still shows a 100% coverage
@Viralplace
@Viralplace 10 месяцев назад
But is possibile to show the output on the browser? Like Jasmine?
@abhishekjindal8610
@abhishekjindal8610 Год назад
Hey @Dave, Could you please create one Next.Js 13 Project using material UI on server side including the state management(redux for example) in Next app ?
@messiisthebest
@messiisthebest 7 месяцев назад
thanks , now i am pro unit tester😂😂
@sanjaymishra-ec9lw
@sanjaymishra-ec9lw Год назад
Sir I have learned HTML ,CSS and Java Script please suggest me what I will have to read to become frontend developer.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Link to my web dev roadmap in the description 😀
@fancyaristocrat7450
@fancyaristocrat7450 Год назад
Perfect thumbnail 🤣
@doniaelfouly4142
@doniaelfouly4142 8 месяцев назад
thanks
@iBen-ry6pj
@iBen-ry6pj 8 месяцев назад
I don't understand how testing libraries work behind the scenes so am like...... What's the point? How about just auto generating all possible inputs and supply to a function and watch the output/returned value? This jest testing appears to run a test using just one value so I don't see the point. But before I blab plenty of nonsense, let me research more about it. Thanks though!
@esrafilelahi5733
@esrafilelahi5733 Год назад
in react? cypress, react-testing-library???
@evanilsonp.8183
@evanilsonp.8183 5 месяцев назад
I mean, i just want to test my crud methods and i can't find how to do that
@michalnowak2181
@michalnowak2181 11 месяцев назад
thx
@jesuswalks1101
@jesuswalks1101 Год назад
I can't focus on programming becouse i think only about money and how powerful it will make me! How to forget about a lot of money and start focusing on work?
@phsopher
@phsopher Год назад
Thanks for the tutorial. Why is this so slow though? It seems every new test adds about a second despite functions being super simple. In a large codebase this would be a nightmare. I don't really have experience testing JS but with Python (pytest) this would take milliseconds.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Welcome - several reasons for the first run slowness here: www.google.com/search?q=why+is+jest+slow
@borooLIVE
@borooLIVE Год назад
boss!
@TuTAH_1
@TuTAH_1 6 месяцев назад
You would better not have names collisions (like sum is both function and file name) in toutorial purposes - it will mix up newbies
@abhinavtiwari89
@abhinavtiwari89 4 месяца назад
Thumbnail 😂😂
@fikreteliyev2266
@fikreteliyev2266 Год назад
Please vitest
@aussiebeermoney1167
@aussiebeermoney1167 Год назад
only girlymen write tests to check their code
@JayFFresh
@JayFFresh 11 месяцев назад
'Hellert , Im here revising the video before beginning the testing with typescript video
Далее
Next.js with React Testing Library, Jest, TypeScript
25:04
Stop Writing So Many Tests
10:02
Просмотров 88 тыс.
Cristiano Ronaldo Surpassed Me! #shorts
00:17
Просмотров 10 млн
Why Vitest Is Better Than Jest
13:13
Просмотров 134 тыс.
JavaScript Unit Testing Tutorial for Beginners
48:32
Просмотров 68 тыс.
The Most Legendary Programmers Of All Time
11:49
Просмотров 555 тыс.
Mocking Asynchronous Functions with Jest
21:50
Просмотров 70 тыс.
How I like to test my react components
19:51
Просмотров 24 тыс.
Brutally honest advice for new .NET Web Developers
7:19