JavaScript Testing - Mocking Async Code

JavaScript Testing - Mocking Async Code

Academind

5 лет назад

145,191 Просмотров

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


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

@ippenshindemiru8023
@ippenshindemiru8023 - 21.06.2023 16:24

my friend,just perfect.................

Ответить
@snillochemingson2830
@snillochemingson2830 - 04.05.2023 01:39

beautiful

Ответить
@maksym7279
@maksym7279 - 04.04.2023 14:06

Great! Thanks!

Ответить
@jelenatrifkovic5567
@jelenatrifkovic5567 - 31.01.2023 23:30

Thank you for this video.

Ответить
@saek7593
@saek7593 - 08.12.2022 14:19

Max, thank you so much!!! <3

Ответить
@khalidelgazzar
@khalidelgazzar - 25.09.2022 23:49

Great video, though Concepts are more advanced than the previous video

Ответить
@dmitrik5566
@dmitrik5566 - 22.05.2022 00:36

Is this possible to do in angular with is configured to use jest? Is it possible to override a function manually like in the video?

Ответить
@alexpro5670
@alexpro5670 - 26.03.2022 20:48

Cool tests with Jest

Ответить
@sandeepamarnath2272
@sandeepamarnath2272 - 25.03.2022 21:22

As always, you're the best tutor! Note: Max, when I open the link to the github to clone the code I got the previous video's code and not the one you teach here about mock. Not sure if it's only for me but please take a look so it will help others to easily code along.
Again, thanks a lot as usual for your wonderful tutorial.

Ответить
@cryptoeric24
@cryptoeric24 - 04.03.2022 03:24

When I run my mocks with --coverage I do not get any coverage, but when I run my test without the mocks I get coverage. Does Jest not cover mocked code??

Ответить
@rodrigomarsan1143
@rodrigomarsan1143 - 16.01.2022 19:12

I would really love a full course on testing with jest, enzyme and react testing library

Ответить
@rajgohil8610
@rajgohil8610 - 21.12.2021 13:41

Thanks for the help

Ответить
@antonijakasum313
@antonijakasum313 - 16.12.2021 17:43

Great video!

Ответить
@marioeldin9315
@marioeldin9315 - 10.11.2021 17:18

How convenient would it be to tell my engineering manager - “hey I just decided to take a few functions in this micro service and slap em in a util file because Jest was busting balls”. Yaaaa… not likely. It would of been good to see the work needed to get a passing test with your application as is because that luxury of moving around functions for testing will not pass any PR.

Ответить
@maurobagnoli3415
@maurobagnoli3415 - 17.08.2021 16:30

Great metaphore in the cover XD

Ответить
@AF-it4ib
@AF-it4ib - 05.08.2021 01:16

Great video mate !!!! Thanks

Ответить
@akasharojee8569
@akasharojee8569 - 21.07.2021 22:04

Good explanation! Thanks.

Ответить
@peeeeb
@peeeeb - 28.06.2021 13:04

Super helpful, thanks Max!

Ответить
@RohitKumar-yy8yh
@RohitKumar-yy8yh - 24.06.2021 18:52

How to cover onkeydown property

Ответить
@snake1625b
@snake1625b - 04.06.2021 15:10

10/10 explanation

Ответить
@StarContract
@StarContract - 12.05.2021 00:37

That was crystal clear, thanks

Ответить
@gsffm9044
@gsffm9044 - 01.05.2021 20:41

app.js is not the same I got from github. Schade

Ответить
@inclinedscorpio
@inclinedscorpio - 25.04.2021 11:43

Hey Max! This is Ashutosh Tiwari ! Thanks for this ❤️ As always you are great !

Ответить
@JeremyMoritz1
@JeremyMoritz1 - 09.03.2021 23:51

Max, the starting code you linked in the description is actually the code from the PREVIOUS video. I cannot seem to find anywhere the starting code for this video. Can you please include it? Thanks for another great tutorial!

Ответить
@safraz1400
@safraz1400 - 26.02.2021 06:28

awesome

Ответить
@sbacon92
@sbacon92 - 19.01.2021 20:32

Excellent video.
I've been using mocha/chia/nyc for years.
I think i'll try jest.

Ответить
@fotoflo
@fotoflo - 24.12.2020 03:10

Hi, How can I mock an api request time out or rejection for rate limiting so I can build back off functions?

Ответить
@gabrielprrd
@gabrielprrd - 14.12.2020 01:42

Honestly the best explanation I could find on mocking. Thank you :)

Ответить
@monishutube
@monishutube - 08.12.2020 21:37

Thank you!!

Ответить
@MridulTripathimohan
@MridulTripathimohan - 11.11.2020 23:04

Awesome!!!!!!!

Ответить
@unutilized
@unutilized - 01.11.2020 04:38

You are such a gifted teacher. So focused. Thank you

Ответить
@davidoliveira242
@davidoliveira242 - 28.10.2020 02:00

Thanks Max!

Ответить
@daviaugusto4828
@daviaugusto4828 - 27.10.2020 19:51

thanks man!

Ответить
@dataninjanl1263
@dataninjanl1263 - 25.10.2020 20:16

Does this mean that when you change the fetchdata function, you also have to change it’s mock or are there any tools that can help with this?

Ответить
@twinstars3428
@twinstars3428 - 11.10.2020 15:26

A very nice tutorial on javascript testing. Thank you.

Ответить
@kisanpakhreen
@kisanpakhreen - 21.09.2020 10:56

thank you for the tutorial. Please make more videos in testing.

Ответить
@jadetaboada447
@jadetaboada447 - 10.09.2020 15:27

how can we stub this?



// some module, "sum.js" that's "required" throughout the application
module.exports = function(a, b) {
return a + b;
};

Ответить
@dariogabalec13
@dariogabalec13 - 09.09.2020 07:19

best explanation about Mocking on the internet, thanks! 😀

Ответить
@jean-baptistelasselle4562
@jean-baptistelasselle4562 - 21.08.2020 12:38

I like the funny accent lol
The subject of vidéo is very pertinent thank u

Ответить
@emarcelino3
@emarcelino3 - 07.07.2020 23:44

very, again, very good!

Ответить
@TDAK1509
@TDAK1509 - 05.07.2020 06:07

You saved my life!

Ответить
@shabeebck3057
@shabeebck3057 - 10.06.2020 23:08

It just slow down the development

Ответить
@driden1987
@driden1987 - 08.04.2020 16:21

Hahaha, Max always pops up when searching for something I need <3

Ответить
@cvanputt
@cvanputt - 02.04.2020 21:06

Really excellent instruction! I bought your React course on Udemy. You are a very good teacher Thank You!

Ответить
@EricOnYouTube
@EricOnYouTube - 09.03.2020 06:12

Max, I am trying to be good and start writing tests for my code. But I have a problem.... since all tests should be an island, what I do in one test should not influence another. The problem is that my variable, for example, that holds a list of all the users who have joined the game will hold data from a previous test. How do I deal with variables like that? Thanks.

Ответить
@EleandroReis
@EleandroReis - 14.02.2020 23:18

Max you are the best!

Ответить