• Overview
@angular/core/testing

tick

function

Simulates the asynchronous passage of time for the timers in the fakeAsync zone.

  
    function tick(  millis?: number,  tickOptions?: { processNewMacroTasksSynchronously: boolean; }): void;
  
  

tick

void

Simulates the asynchronous passage of time for the timers in the fakeAsync zone.

The microtasks queue is drained at the very start of this function and after any timer callback has been executed.

@parammillisnumber

The number of milliseconds to advance the virtual timer.

@paramtickOptions{ processNewMacroTasksSynchronously: boolean; }

The options to pass to the tick() function.

@returnsvoid
Jump to details