JavaScript Testing with Jest - Crash Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024

ความคิดเห็น • 51

  • @randymartin9040
    @randymartin9040 หลายเดือนก่อน +5

    Definitely one of the best tutorials I've seen, very appropriate speed for beginners! Thanks

  • @askholia
    @askholia หลายเดือนก่อน +3

    This is a great simple tutorial on jest. Very much enjoyed it and ready to do Jest tests and TDD.

  • @tigana
    @tigana 11 ชั่วโมงที่ผ่านมา

    So helpful thank you. I hope there's a frontend testing tutorial too. I'll be doing that next if there is! Also reading the book 'Unit Testing: Principles, Practices, and Patterns'.

  • @devworks8787
    @devworks8787 9 หลายเดือนก่อน +3

    much needed one. please add other testing libraries as well especially ones for react

  • @0xVantwoutMaarten
    @0xVantwoutMaarten 3 หลายเดือนก่อน +5

    Everything is clear,so well done, but for my taste way to easy and basic, could have gone much more in-depth for most devs. Including class mocking, actual mocking use cases, snapshots, setup /teardown, scoping, coverage, many more things I would like to see, but maybe in Part 2!

  • @M7ilan
    @M7ilan 9 หลายเดือนก่อน +5

    Wow day ago thought it was years ago. Perfect timing for me I guess

  • @mamadmehdiazizi9401
    @mamadmehdiazizi9401 2 หลายเดือนก่อน

    so simple tutorial about jest . please release more parts about this topic

  • @juanmacias5922
    @juanmacias5922 9 หลายเดือนก่อน +5

    46:20
    function fetchPromise(isComplete) {
    return new Promise((resolve, reject) => {
    if (isComplete) {
    setTimeout(() => resolve('Hi'), 1000)
    }
    else {
    setTimeout(() => reject(new Error('error')), 1000)
    }
    })
    }
    test("fetchPromise is 'Hi'", () => {
    return expect(fetchPromise(true)).resolves.toBe("Hi")
    })
    test("fetchPromise throws", () => {
    return expect(fetchPromise(false)).rejects.toThrow("error")
    })

  • @M7ilan
    @M7ilan 9 หลายเดือนก่อน +3

    This man offer very good explanation. Good job!

  • @haciendadad
    @haciendadad 6 หลายเดือนก่อน +1

    Nice tutorial, but I wish there could have used a more complex example other than that sum function. Still a good video!

  • @pulsechainalltheway1845
    @pulsechainalltheway1845 26 วันที่ผ่านมา

    Great and amazing tutorial. Thank you

  • @olakunlemuheeb6229
    @olakunlemuheeb6229 10 หลายเดือนก่อน +9

    Naija to the world 🎉🎉

  • @ryanwoods3333
    @ryanwoods3333 10 หลายเดือนก่อน +4

    great! how about more in-depth and with React?

  • @ankitrawat7211
    @ankitrawat7211 9 หลายเดือนก่อน

    Woww!!! This is exactly what I wanted

  • @salimonwale374
    @salimonwale374 9 หลายเดือนก่อน +1

    Great video and lecture. I have been able to link my replit account with my github but I have been unable to link or upload the files of my repositories from replit to github. It's only showing my repositories on github but it's empty. How do I upload the files?

  • @engineeringmadeasy
    @engineeringmadeasy 9 หลายเดือนก่อน +2

    At 7:28. Line 7, dont we need to replace ( "echo \"Error: no test specified\" && exit 1") with ( "jest" ). Instead of "test" with "jest"?? Can someone please clarify. Thanks

    • @mitchell4217
      @mitchell4217 9 หลายเดือนก่อน +3

      Jump to 13:36. He clarifies here. I think he put this part in here to show that you have to update the value, or the right-hand side of the key: value pair.

  • @Silent_Squid-p3f
    @Silent_Squid-p3f 9 หลายเดือนก่อน

    I was actually looking for testing react applications... I think the last video you guys uploaded was about a year ago... would like a new updated one

  • @yokiyu799
    @yokiyu799 26 วันที่ผ่านมา

    Wakanda Forever!!

  • @nzubeprecious2914
    @nzubeprecious2914 10 หลายเดือนก่อน +2

    Wow Nigeria to the World

  • @david-dong
    @david-dong 10 หลายเดือนก่อน +34

    Thank you LeBron James

    • @_tot_
      @_tot_ 8 หลายเดือนก่อน

      What theme does he use?

  • @filippotinnirello
    @filippotinnirello 9 หลายเดือนก่อน +1

    Got lost around 39:00, why there's a "callback" function inside fetchData? Why the test calls a function (fetchData) of a function (callback)?

    • @djdennyjohn
      @djdennyjohn 9 หลายเดือนก่อน +1

      The callback function is a placeholder for any function that will be passed as an argument when calling fetchData. This pattern is common in asynchronous programming, where you provide a function to be executed once an asynchronous operation (in this case, the timeout) is complete.

  • @nested9301
    @nested9301 10 หลายเดือนก่อน

    tf i was about to search jest and this video pops up loool

  • @JonathanKila
    @JonathanKila 7 หลายเดือนก่อน

    Does anyone know why intellisense does not work?

  • @ankitasood8589
    @ankitasood8589 4 หลายเดือนก่อน

    Can we not add two import in same file say i want to import sum and myFunction both, on executing this i am getting an error saying module not found ?

  • @jesse-c5y
    @jesse-c5y หลายเดือนก่อน

    what dark theme is this?

  • @khalidelgazzar
    @khalidelgazzar 10 หลายเดือนก่อน

    Beautiful 😊

  • @ShoxaKardashian
    @ShoxaKardashian 8 หลายเดือนก่อน +1

    What the theme is used in your VSCode?

    • @_tot_
      @_tot_ 8 หลายเดือนก่อน

      Ya found the answer, mate?

    • @ShoxaKardashian
      @ShoxaKardashian 8 หลายเดือนก่อน

      @@_tot_ no

    • @CrazySalieri
      @CrazySalieri 5 หลายเดือนก่อน +1

      ayu theme

  • @drekcari
    @drekcari 6 หลายเดือนก่อน

    Is this applicable to typescript?

    • @DevBigEazi
      @DevBigEazi 3 หลายเดือนก่อน

      Pls is it?

  • @moutasim_ayoubi
    @moutasim_ayoubi 10 หลายเดือนก่อน

    JIT video

  • @juanmacias5922
    @juanmacias5922 9 หลายเดือนก่อน +2

    2:22 could have just ran "code ." from the terminal to open up VsCode :D

  • @akashojha4127
    @akashojha4127 10 หลายเดือนก่อน +1

    First' view on this course ❤❤

  • @rupeshgade4804
    @rupeshgade4804 10 หลายเดือนก่อน

    ❤❤❤

  • @rishiraj2548
    @rishiraj2548 10 หลายเดือนก่อน +1

    🙏🙂👍

  • @DukeChameleon
    @DukeChameleon 6 หลายเดือนก่อน +1

    I like how online courses are starting to cover indian guys giving the lecture by presenting the white guy first

    • @dbrandeau
      @dbrandeau 6 หลายเดือนก่อน +4

      He does not look nor sound Indian.

  • @MdAJIMKhan-qc3cy
    @MdAJIMKhan-qc3cy 10 หลายเดือนก่อน

    সুবাহানাল্লাহিল আজিম সুবহানাল্লাহি ওয়াবি হামদিহি আস্তাগফিরুল্লাহ

  • @helleyequeue
    @helleyequeue 9 หลายเดือนก่อน +1

    Can we move away from JS already? It’s getting toxic these days.

  • @AkashRaj-zc6vc
    @AkashRaj-zc6vc 7 หลายเดือนก่อน

    Not much help because instructor himself is not confident could have been better specially the async part.

    • @pulsechainalltheway1845
      @pulsechainalltheway1845 26 วันที่ผ่านมา

      And how did you come to that conclusion 🤷‍♂️🤷‍♂️🤷‍♂️

  • @Ham.AI.
    @Ham.AI. 10 หลายเดือนก่อน

    ferst

  • @Franck_Polla
    @Franck_Polla 9 หลายเดือนก่อน

    thank you