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.
Github project: https://github.com/theryansmee/angular-jest-async-unit-test-tutorial
Part 1: https://youtu.be/nC_J6mmi3-I
Jest docs: https://jestjs.io/docs/en/tutorial-async
Installing Jest: https://youtu.be/Dt8RtykEglo
IDE: Webstorm
Theme: Gradianto
Mic: Rode NTK
Instagram/Twitter: @theRyanSmee
Author: Ryan Smee