What Was That flushMicrotasks Thing Again?

This is a past event

21 people went

Location image of event venue

Details

Our next speaker is Georgi Parlakov - long term member of the Angular Sofia meetup and an awesome guy. Brace yourselves for some "async" stuff mixed with testing tips.

Language: Bulgarian

SPEAKER
Georgi Parlakov is full-stack web developer. He loves simple and well tested software solutions. For his day job does a lot of Angular, Typescript, RxJs and .NET and at night he dabbles in Docker, F#, Azure. He is also father of a beautiful girl, blogger, course author, occasional meetup and event speaker and is an aspiring open source contributor.

TOPIC
I had one of those “ahhh so this is what that thing is for” moments while testing an angular component relying on promises. I suddenly realized why “flushMicrotasks” and why I need it. Do you need it? Let me tell you my story and find out.
In short:
Testing promises in Angular is hard.
In the front-end we often deal with async interactions and often use promises. When it comes to testing we get stuck and give up on the already hard to do testing.
We need to know what are microtasks, how promises use them and when do they get invoked - in the context of the (almighty!) js event loop.

REMEMBER:
- Spread the word about this event to your geeky friends and colleagues.
- Please sign up in order to show your interest.
- Everyone is welcome!