React Testing Library Crash Course

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • This course is a part of a larger Udemy course that will teach you the ins and outs of React Testing Library. I really hope that you enjoy this video and learn a lot from it.
    Udemy Course (With Discount):
    www.udemy.com/course/the-reac...
    Timeline:
    0:00 - What is Testing and Why we Care
    17:30 - Our App
    24:25 - RTL Philosophy
    28:10 - Structure of Test
    35:35 - Querying for Elements
    1:01:00 - User Events and Browser Interactions
    1:53:18 - Organizing Test Files

Komentáře • 51

  • @louierichardson123
    @louierichardson123 Před 2 lety +1

    I've been trying to find a good crash course for a few days. I've stumbled across this one, and I am so glad I did! Great style of teaching my friend.

  • @yogajourney9519
    @yogajourney9519 Před rokem +1

    Thank you, thank you, thank you for being one of the few people who make tutorials that zoom in generously. It makes the tutorial so much easier to follow!

  • @mdzahangirhossain8540
    @mdzahangirhossain8540 Před 2 lety +1

    Lovely! Just have bought the course on udemy. You are a gem... Thanks for the good quality crash courses, hope to see a lot more of you.

  • @edwin_castillo
    @edwin_castillo Před rokem

    Awesome video, I was seekin' something like this to have a whole overview about testing library on React, thanks, keep it up!

  • @brandonmchugh9821
    @brandonmchugh9821 Před rokem

    Best explanation/tutorial of react unit tests ive come across. This is the only that's helped me so far

  • @nanonkay5669
    @nanonkay5669 Před 2 lety

    LAITH, LAITH, MY MAN LAITH!!!!! I WAS WAITING FOR YOU TO DROP THIS ONE AND HERE YOU ARE BLESSING US THIS FESTIVE SEASON MY MAN!!!!

  • @romimaximus
    @romimaximus Před 2 lety +1

    Yeahhh !! awesome !! .. im sure lots of devs been waiting for a good testing video tutorial like this.... thankx for sharing...!! 😎👍

  • @donovan8031
    @donovan8031 Před 2 lety +6

    This is the best introduction to React testing so far. I have learned so much for this video compared to other React Testing resources online that didn't really explain JS testing concepts all too well imo. Not only have you earned a CZcams subscriber, I also purchased your Udemy course. I am a little over halfway through, I am enjoying it. You can expect a positive review on this Udemy course from me once I am done. Keep up the good work here!

  • @markopavic7012
    @markopavic7012 Před 2 lety

    I was waiting for this!!!

  • @alec3979
    @alec3979 Před rokem

    Excellent tutorial!

  • @RahulKumar-wu1dv
    @RahulKumar-wu1dv Před 2 lety +4

    can't use render directly on beforeEach its giving linting error:
    Forbidden usage of `render` within testing framework `beforeEach` setup eslint (testing-library/no-render-in-setup)

  • @you3667
    @you3667 Před 2 lety

    You are a great teacher! thx!

  • @danianiazi8229
    @danianiazi8229 Před 2 lety

    Love your channel 💙

  • @EK-rp8jp
    @EK-rp8jp Před 2 lety

    another great video, thanks a lot!

  • @Sajee362
    @Sajee362 Před rokem

    Best Testing Video in the entire Universe

  • @worldbest3097
    @worldbest3097 Před 2 lety

    wow, definitely i need this

  • @LumbreraEnMiCamino
    @LumbreraEnMiCamino Před 2 lety

    This is what I was looking for

  • @abanoubashraf1308
    @abanoubashraf1308 Před 2 lety

    please do tailwind css crash course, i love the way you explain stuff, good wok bro

  • @khandoor7228
    @khandoor7228 Před 2 lety +3

    This looks awesome Laith. I will get the Udemy course because it looks awesome even if I don't know when I'll get to it : ( Thanks!

  • @mortezaahmadi5710
    @mortezaahmadi5710 Před 2 lety

    Great content! ty very much

  • @MunshiWahid
    @MunshiWahid Před 2 lety

    I have also bought the course. 😊

  • @jassencastilloespinoza4780

    thank you!! your are awesome

  • @Ga2-20
    @Ga2-20 Před rokem

    Hello :)
    Do you explain here or on udemy how to test components with children props?
    And how to test if some component renders children properly?
    Thanks :)

  • @mahendranath2504
    @mahendranath2504 Před 2 lety

    Thanks you so much 👍🏼🙏⭐❤️

  • @RizaHariati
    @RizaHariati Před 2 lety

    Thank you!

  • @MA-hn2dc
    @MA-hn2dc Před 2 lety

    I don't know if is it possible to add Udemy's courses to Skillshare website ??

  • @nikBun312
    @nikBun312 Před 6 měsíci

    is there a react test which includes how to handle provider, store, preloadState and browserRouter/memoryRouter in this video? if not, this may become ideas of your next video.

  • @ispaxannixteridas370
    @ispaxannixteridas370 Před rokem

    Great course thanks. Advice to anyone watching this -> 1.25 speed

  • @arihantjain8347
    @arihantjain8347 Před rokem

    I dont understand, since it is recommended that the form should be submitted instead of button, but if we submit the form, userEvent.click("button") throws an error, what to do?

  • @dek99s
    @dek99s Před 2 lety

    great!

  • @marian_tsx
    @marian_tsx Před 2 lety

    Instead of doing "Password" and "Confirm Password" for match wouldn't /^password$/i and /^confirm password$/i have worked for exact match regex?

  • @carminetambascia6355
    @carminetambascia6355 Před 2 lety

    Eslint has a rule that prefer have the render in each test

  • @carminetambascia6355
    @carminetambascia6355 Před 2 lety +4

    The first one could also be simplified as such :
    const {emailInputElement, passwordInputElement, confirmPasswordInputElement} = typeIntoForm({})
    expect(emailInputElement.value).toBe("")
    expect(confirmPasswordInputElement.value).toBe("")
    expect(passwordInputElement.value).toBe("")

  • @mohammedal-haifi7538
    @mohammedal-haifi7538 Před 2 lety

    Great materials. Can you please update the udemy code. It does not work anymore

  • @masoudhesami1382
    @masoudhesami1382 Před 2 lety

    How can i watch this course entirely ?

  • @danianiazi8229
    @danianiazi8229 Před 2 lety

    Do crash courses on Flux , Recoil , mern with AWS will be much helpful

  • @nikBun312
    @nikBun312 Před 6 měsíci

    Do you recommend to watch this youtube lesson after watching your course RTL Bootcamp in udemy?

  • @manoj-k
    @manoj-k Před 2 lety

    🔥🔥🔥

  • @codernerd7076
    @codernerd7076 Před 2 lety +1

    Thinking about buying it, but it's an 5 hour udemy course but you already uploaded about 50% here so I only getting 2.5 hours of content for it while I'm also eye balling a new nest.js course as well got to think about this... 🤔

    • @nanonkay5669
      @nanonkay5669 Před 2 lety

      It's only $10, so it's really not that big of a loss

    • @codernerd7076
      @codernerd7076 Před 2 lety

      @@nanonkay5669 sadly for me it is like the dollar is much higher them my local currency

    • @nanonkay5669
      @nanonkay5669 Před 2 lety +1

      @@codernerd7076 ah I see. In that case, watch this for some react testing concepts and look for another source/tutorial to complete whatever's left

    • @lardosian
      @lardosian Před 2 lety +1

      @@codernerd7076 There are many Nest tutorials on youtube, maybe learn from those and the official Nest docs, after all that's how tutorials are made, you may find more of a sense of accomplishment by following the docs and learning by yourself.

  • @osamagamal495
    @osamagamal495 Před rokem

    the link in teh description navigates me to the udemy platform where the price is 20€ but I go to the cart it says 180€.
    how can I buy it with 20€?

  • @saranyasingh6847
    @saranyasingh6847 Před 10 měsíci

    Warning: An update to App inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...):
    can someone help me resolve it ?

  • @akhilaravindakshan420
    @akhilaravindakshan420 Před 2 lety +1

    I was looking for this course and its not available in business account :(

    • @bufootballa
      @bufootballa Před 2 lety

      Same! I still just bought it on my personal account as Laith is always delivering high quality content and we can show him some support! Flash sale going on right now!

  • @exodion4173
    @exodion4173 Před 2 lety

    I took your Testing course on Net Ninja's YT and was very impressed. Definitely going to buy this!
    Hope this is even better than that.
    Edit - Bought it. Can't wait to start!

  • @topherreynolds3999
    @topherreynolds3999 Před měsícem

    Just FYI for "should show email error message on invalid email" I had to use async and await... maybe my computer is just too fast 😛

  • @lucasfrutig4945
    @lucasfrutig4945 Před rokem

    nice tutorial, i have a doubt, why dont use toHaveValue? Instead .value plus toBe?