Introduction to Jest Testing | JavaScript Unit Tests

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 77

  • @sandroffdsantos
    @sandroffdsantos Год назад +24

    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 8 месяцев назад

      How do I use jest with my crud methods?

    • @evanilsonp.8183
      @evanilsonp.8183 8 месяцев назад

      Basically I want to test my crud methods

  • @chiragchhajed8353
    @chiragchhajed8353 Год назад +18

    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 Год назад +8

    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!

  • @mihaivisovan2407
    @mihaivisovan2407 Месяц назад

    After a one year programming break, I really needed this playlist. I already knew all of them, but this was the best refresher I needed. Clean, short and very easy to understand. Please keep up the good work and continue making youtube videos!!!

  • @TonyStark90743
    @TonyStark90743 Год назад +2

    Much needed video , please cover unit testing , integration testing, End to end testing , React test library , Cypress

  • @md-abid-hussain
    @md-abid-hussain Год назад +1

    Didn't see that comming.
    Excited for this series

  • @mrbilchalan
    @mrbilchalan Год назад +1

    pls, continue this. thank you again, Dave.

  • @codersdance
    @codersdance Год назад +2

    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 Год назад +4

    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

  • @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

  • @frankkim9178
    @frankkim9178 Год назад

    Cannot wait to see the content about cypress vs jest, and when we need to use them. Lovely.

  • @calebmbugua745
    @calebmbugua745 Год назад +1

    Thanks Dave💯 Pure Gold!

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr Год назад +2

    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

  • @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 Год назад

    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!

  • @stevieholland3579
    @stevieholland3579 Год назад +2

    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.

  • @rdubb77
    @rdubb77 6 месяцев назад

    Great video, I like how you use non trival examples and work in clean code principles.

  • @LorenzoJimenez
    @LorenzoJimenez Год назад

    Real nice! Thanks. I will add the tests when the strings are null or undefined.

  • @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!

  • @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!

  • @MichaelShingo
    @MichaelShingo 9 месяцев назад

    nice intro to jest thank you, excited to integrate this into my Next.js app

  • @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

  • @mrpaulishaili
    @mrpaulishaili Год назад

    So excited! Thank you sir! Will definitely be sharing on my LinkedIn once done with mine!

  • @fares.abuali
    @fares.abuali Год назад +1

    Great topic 🎉
    Thanks Dave

  • @imigi427
    @imigi427 Год назад

    Amazing, I need to wrote whole bunch of test in work. Really appreciate your work

  • @_isaac_muniz_
    @_isaac_muniz_ Год назад

    That was a good simple intro. Thank you.

  • @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.

  • @viditgoel2909
    @viditgoel2909 Год назад

    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.

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 11 месяцев назад

    Fantastic tutorial! Thank you so much! 💛

  • @fedirouatbi4908
    @fedirouatbi4908 Год назад

    Thanks for this great lesson hope we see react and typeScript tests soon

  • @ojotimmy6002
    @ojotimmy6002 Год назад

    Thank you for the amazing content Dave. The timing is perfect.

  • @ShinobiGen
    @ShinobiGen Год назад +1

    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?

  • @abc_noob
    @abc_noob Год назад +8

    Nice thumbnail 😂

  • @TechDecryptor
    @TechDecryptor Год назад

    Really waiting for the videos

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars Год назад +1

    thank you, simple and to the point :)

  • @ayesigwar
    @ayesigwar Год назад +1

    Thanks Dave. Do you plan to do any DevOps videos for aws in future?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Год назад +1

      I'm definitely interested in doing that. I haven't had many requests for it, but it might still be good.

  • @akindipejohn2595
    @akindipejohn2595 Год назад

    Really appreciate your work 🙌

  • @cirolandia007
    @cirolandia007 11 месяцев назад

    Excellent video, thank you very much!!!

  • @vladyslav-py-js-cs
    @vladyslav-py-js-cs 10 месяцев назад

    Nice explanation, thank you 😁

  • @ПавелМ-к8в
    @ПавелМ-к8в Год назад

    Thanks Dave, very clear explanation, I hope you'll continue this theme and also cover RTL.

  • @juanmacias5922
    @juanmacias5922 Год назад

    This was amazing, thank you so much!

  • @abdullahsevmez42
    @abdullahsevmez42 Год назад

    thanks dave :) You're great! Will u continue this series. And will it come with nextjs or react. It would be perfect.

  • @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

  • @hohugo2292
    @hohugo2292 Год назад

    looking forward the next, please update Dave, please!

  • @Mike-jq7os
    @Mike-jq7os Год назад

    please please please, we need a full course

  • @leojohn6702
    @leojohn6702 Год назад

    Is this a new playlist? Will you create more about it?

  • @Mike-jq7os
    @Mike-jq7os Год назад +1

    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.

  • @bensalemadel8940
    @bensalemadel8940 10 месяцев назад

    you don't need replaceAll(',','') already join with empty string will concat all string with an empty string

  • @messiisthebest
    @messiisthebest 9 месяцев назад +1

    thanks , now i am pro unit tester😂😂

  • @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  Год назад +1

      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.

  • @Viralplace
    @Viralplace Год назад

    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 ?

  • @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.

  • @vidhya821
    @vidhya821 Год назад

    for coverage, even if I dont write a test for reverseString, it still shows a 100% coverage

  • @evanilsonp.8183
    @evanilsonp.8183 8 месяцев назад

    I mean, i just want to test my crud methods and i can't find how to do that

  • @esrafilelahi5733
    @esrafilelahi5733 Год назад

    in react? cypress, react-testing-library???

  • @iBen-ry6pj
    @iBen-ry6pj 11 месяцев назад

    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!

  • @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

  • @fancyaristocrat7450
    @fancyaristocrat7450 Год назад

    Perfect thumbnail 🤣

  • @doniaelfouly4142
    @doniaelfouly4142 10 месяцев назад

    thanks

  • @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?

  • @michalnowak2181
    @michalnowak2181 Год назад

    thx

  • @borooLIVE
    @borooLIVE Год назад +1

    boss!

  • @TuTAH_1
    @TuTAH_1 9 месяцев назад

    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 7 месяцев назад

    Thumbnail 😂😂

  • @fikreteliyev2266
    @fikreteliyev2266 Год назад

    Please vitest

  • @aussiebeermoney1167
    @aussiebeermoney1167 Год назад

    only girlymen write tests to check their code

  • @JayFFresh
    @JayFFresh Год назад

    'Hellert ,
    Im here revising the video before beginning the testing with typescript video