Coding task · Angular course · Module 11: Testing
Practice: fakeAsync test
A test with virtual time is wrapped in a function from @angular/core/testing (already imported on the first line), and inside it you move the clock forward by a number of milliseconds with a function you also have to import. flush() fast-forwards all pending timers at once.
Task
Complete the asynchronous test for a component with debounce.