Testing promises in Angular with Jest Tutorial - (Testing Asynchronous Code in Angular: part 2)

preview_player
Показать описание
Testing asynchronous code in Angular with Jest: Part 1 - Promises

In this video we look at how to mock and test methods that include promises.

*Bonus*
There is also some bonus examples for you to work through at the end that incorporate a mixture of promises and timers.

IDE: Webstorm
Theme: Gradianto
Mic: Rode NTK

Instagram/Twitter: @theRyanSmee
Author: Ryan Smee
Рекомендации по теме
Комментарии
Автор

Amazing work! Thank you very much!!! I was completely stuck in something similar to your last method's implementation

paoloadrianfernandezroman
Автор

Thanks again for another video about Jest and Angular!
Like you, I don´t use promises very often but its always a good thing to know how to test them in different scenarios.
Keep it up, mate! Cheers!

metagamingOficial
Автор

Hi Ryan. Awesome videos! I wonder if you could do a video where you test how an Angular template would react in response to a stream from an observable. thanks again.

ThompsonEdolo
Автор

Ryan best regards. When are you upload more videos about jest?, very interested

maopuerta
Автор

have a quick qn. When we use Jest in Angular, do we no longer need TestBed setup etc which we used to do for Karma / Jasmine? BTW another gr8 video well done!

ranjinandu
Автор

Great vid, but can @angular/testing be used here? like fakeAsync and flush?

cause i keep getting `Error: Expected to be running in 'ProxyZone', but it was not found.`

TheMatttm
Автор

Your videos are very well explained and your teaching is very great! Do you intend to launch a course of Angular + tests?

leandroki
Автор

Hey Ryan your video really helps to learn more about jes and angular testing. Can you upload it in github please T-T? I've looked it but the repo isn't att. thanks a lot

antoniocostajunior
Автор

Hey, you saved my life. This process.nextTick works like magic. Thankss

ishanirwani
visit shbcf.ru