When testing asynchronous operations in Angular, which utility can be used to handle asynchronous tasks inside test specs?

  • ComponentFixture
  • HttpClientTestingModule
  • TestBed.overrideProvider()
  • async()
When testing asynchronous operations in Angular, the async() function is used to handle asynchronous tasks inside test specs. It enables you to write asynchronous code in a synchronous style, making it easier to work with observables, promises, and async functions within your tests.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *