React Unit Testing Tutorial With React Testing Library and Vitest React

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 24

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  10 днів тому

    WATCH NEXT: React Unit Testing Crash Course: Beginner to Advanced Guide - ua-cam.com/video/iIMaFgeNzc8/v-deo.htmlsi=CK1gCezcfuXX9vwz

  • @dj_256
    @dj_256 21 годину тому

    This is hugely underrated content

  • @garikmelqonyan6011
    @garikmelqonyan6011 5 місяців тому +2

    Good job, bro!
    Btw, you said you have solved the issue with `SyntaxError: Cannot use import statement outside a module jest`.
    Can you pls tell how you have done it?
    There is tons of info about it but none of them solves the issue...

  • @devyadav0399
    @devyadav0399 4 місяці тому +1

    Really helpful, keep up the good work!

  • @kmdoll
    @kmdoll 2 місяці тому

    Thanks for the video. Very helpful. Just curious, when you code personal projects, do you start with tests first or do you start with writing code first? Thanks.

  • @peshutanpavri1599
    @peshutanpavri1599 6 місяців тому

    Very good video, Thank you for sharing. I was thinking, since Cypress has its Component testing, is it not possible to just use Cypress ?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  6 місяців тому +1

      You kind of can, but it is not a replacement for normal unit testing. Cypress just lacks flexibility of unit testing.

    • @peshutanpavri1599
      @peshutanpavri1599 6 місяців тому

      Thank you so much@@MonsterlessonsAcademy for getting back to me. Yeah that makes sense, I am just trying to get the most complete setup without excess dependencies,
      I guess I will use this for Unit tests, and possibly for component too, then cypress just for E2E

  • @haidarmuhammadnaufal160
    @haidarmuhammadnaufal160 Місяць тому

    I cannot insert my component inside render(). It's said that my component is a type even thought it isn't

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Місяць тому

      Unfortunately I help with code debugging only in the paid courses as it takes a lot of time and effort.

  • @alishettima9788
    @alishettima9788 3 місяці тому

    Nice presentation, but you are little bit fast with talking. Please move slowly, so that people can follow with you along because your presentation is excellent.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  3 місяці тому

      Thank you for the feedback. Meanwhile you can slow down the video if it is too fast for you.

    • @Its-InderjeetSinghGill
      @Its-InderjeetSinghGill Місяць тому

      @@MonsterlessonsAcademyNice humour 😂😂😂

  • @waleedsharif618
    @waleedsharif618 10 місяців тому

    Does it work normally if we use React testing library + jest + vite and not vitest ?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  10 місяців тому

      Yes obviously

    • @niloben659
      @niloben659 7 місяців тому

      @@MonsterlessonsAcademy It's not obvious, it's a legitimate question. I was wondering the same thing

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  7 місяців тому +1

      @@niloben659 Sorry, when I', writing code I always do it so it works for people in different os, use cases etc. This is why for me it is obviously :)

    • @niloben659
      @niloben659 7 місяців тому

      @@MonsterlessonsAcademy No problem and thanks for the video