Jest Crash Course - Learn How to Test your JavaScript Application

Jest Crash Course - Learn How to Test your JavaScript Application

Laith Academy

2 года назад

108,335 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

HK HSM
HK HSM - 07.10.2023 10:26

Amazing video. Many thanks for mocking example with axios.

Ответить
rusli Abdul gani
rusli Abdul gani - 21.09.2023 05:33

for toBeCloseTo() assertion you can see the error not passed test, it show the limit (expected difference is 0.005)

Ответить
Shiva Kugan
Shiva Kugan - 05.08.2023 16:21

Спасибо за новое видео. Уже давно слежу за вашим каналом, нашла много полезного для себя.

Ответить
Victor Korovin
Victor Korovin - 03.08.2023 15:57

Very cool, thanks! I am starting to learn jest. Your course has been very helpful!

Ответить
Manan Goyal
Manan Goyal - 28.06.2023 12:45

Beautiful video, crisp, to the point and nice explanation!

Ответить
Youcef Mantas
Youcef Mantas - 19.06.2023 11:35

the course is really cool but the mocks part needed more explination and clarification

Ответить
Focus Iam
Focus Iam - 15.06.2023 19:07

Such a nice tutorial, you're amazing. Thank you!❤❤❤

Ответить
RF Ryan Favour
RF Ryan Favour - 20.05.2023 02:57

Really nice

Ответить
WantOxide
WantOxide - 11.05.2023 12:19

There is an error on the jest home page at the beginning:
it says: "Jest is a delightful javascript testing framework".

It should be "Jest is shit and a nightmare".

Ответить
SAGAR MISHRA
SAGAR MISHRA - 28.04.2023 17:11

Best Explanation Ever for Jest, Just Incredible

Ответить
maximus
maximus - 07.04.2023 00:25

Laith, you do deserve a 1M Subs for sure!
Thanks for the content.

Ответить
Behon Baker
Behon Baker - 21.03.2023 15:37

Thanks. Wish you went more into mocking with classes and stuff.. but I get it now. ❤

Ответить
Nonso Okongwu
Nonso Okongwu - 16.03.2023 11:19

great lecture... keep it up

Ответить
Thomas de Visser
Thomas de Visser - 22.02.2023 00:17

Thanks Laith, liked the course! Would've preferred a few less matcher methods and a bit more advanced info though, like using Jest with ES modules or testing React.

Ответить
Mayank Kashyap
Mayank Kashyap - 06.01.2023 00:34

Nice course, very informative I have learned a lot.
Thank You ❤️

Ответить
Kristopher Driver
Kristopher Driver - 03.01.2023 15:40

I see you're a fan of Traversy Media lol gotta practise that Boston accent to really stick the landing 😜

Ответить
vurr nurr
vurr nurr - 29.12.2022 13:36

For anyone who struggled to understand how the mock.calls worked, as I did, too, initially - here is what [x] [y] mean: x represents the index of the call made (i.e. 0 = first call, 1 = second call, 2 = third call etc) and y represents the index of the first argument we find on that call (i.e. always 0 as we only have one argument).

So, taking our example in the tutorial 'expect(mockCallback.mock.calls[1][0]).toBe(1)' - [1] represents the second call and [0] first argument, which in this case is 1. Hope this helps to clarify and keep up the good work studying!

Thanks Laith Academy! <3

Ответить
17-459 Sreekanth
17-459 Sreekanth - 11.12.2022 11:03

Can you please tell me how to write unit test for a button click..

Ответить
dina Mohamed
dina Mohamed - 03.11.2022 14:36

thank you

Ответить
Abdur Rehman
Abdur Rehman - 05.10.2022 08:46

Very good and helpful crash course👍👍👍

Ответить
Abhishek Ranjan
Abhishek Ranjan - 21.09.2022 06:41

I love your contest Laith! Been following your content when you had only few hundred subscribers : ) Do you have any plan to make web3 development tutorials in future?

Ответить
Muhammad Salikin
Muhammad Salikin - 23.08.2022 00:49

Thank you sir

Ответить
Bart Zumba
Bart Zumba - 04.08.2022 02:00

Does it include api and database mocking

Ответить
Jason Amey
Jason Amey - 02.08.2022 17:38

Real nice tutorial L. Thanks for your hard work. 🙂

Ответить
Akin Pelumi
Akin Pelumi - 25.07.2022 09:58

This channel is incredible, your teaching skill is great. Thank you, I appreciate what you're doing on this channel.

Ответить
Thierno
Thierno - 15.06.2022 14:33

You are the GOAT thanks a lot!

Ответить
CRW3DMedia
CRW3DMedia - 19.05.2022 21:08

Not sure if mentioned but I believe a mocked module/function must be included/required in the test code.

Ответить
Gavin Coulson
Gavin Coulson - 09.05.2022 21:04

Great stuff, thanks for this!

Ответить
Haroon Afridi
Haroon Afridi - 14.04.2022 01:50

cool thing. nice explanation

Ответить
Sergei Perepelkin
Sergei Perepelkin - 12.03.2022 19:02

Nice! Especially thanks for mocking example with axios

Ответить
Jitendra Panwar
Jitendra Panwar - 12.03.2022 06:46

Thank you so much. since long I was not able to get understanding of mocking which you explained practically in good way.. thanks and keep on.

Ответить
Revcrow
Revcrow - 28.02.2022 02:39

It's a bad practice and something to avoid when testing real endpoints. You should have a mock data, preferably using MSW package to mock your endpoints. Never test real endpoints.

Ответить
Owl Trades
Owl Trades - 21.02.2022 15:17

Nice course but I didn't get mocks

Ответить
CoderJag
CoderJag - 05.02.2022 00:13

Very helpful video! Thank you!

Ответить
Veeravenkata Garapati
Veeravenkata Garapati - 28.12.2021 20:49

Laith, very good tutorial on Jest. Do you have any tutorial on JEST with LWC component to test field value on clicking submit button in the LWC.

Ответить
Maaz Ahmad
Maaz Ahmad - 21.10.2021 16:01

Thanks Laith

Ответить
Filip Petkovski
Filip Petkovski - 17.10.2021 14:56

Please a video for testing next.js with typescript

Ответить
Dev Man
Dev Man - 17.10.2021 06:56

Are you Brad? :)

Ответить
abhinav singh
abhinav singh - 14.10.2021 09:07

Nice tutorial 👍

Ответить
Kunal Pandey
Kunal Pandey - 23.09.2021 14:02

thank you for this

Ответить
Dawid Dahl
Dawid Dahl - 08.09.2021 08:03

Great course, thanks for including mocks and not just the simple pure function stuff.

Ответить
Rachid
Rachid - 03.09.2021 01:45

Thank you .
The mocks part in the tutorial needs to be demystified more.

Ответить
hitesh suthar
hitesh suthar - 23.08.2021 07:14

Thanks for providing Jest & React testing Library courses 🙏

Ответить
Klifford Agujar
Klifford Agujar - 19.08.2021 17:14

I have to say, you have the best quality tutorials out there!

Ответить
jahel Santiago León Rodrigues
jahel Santiago León Rodrigues - 06.08.2021 07:03

wow you create the video in one shot, that is amazing

Ответить