In a particular section of the Angular Testing Guide, it discusses how to test components with asynchronous services, pointing out that:
When writing test functions involving
done
rather thanasync
andfakeAsync
, it may be more cumbersome but remains a valid and sometimes necessary approach. This is especially true when dealing with scenarios like testing code usingintervalTimer
or asyncObservable
methods.
Is there anyone who can shed light on what exactly intervalTimer
is and why it poses challenges for testing with async
or fakeAsync
?