• Advances all timers by msToRun milliseconds. All pending macro-tasks that have been queued by setTimeout(), setInterval() and setImmediate(), and would be executed within this time frame will be executed.

    Parameters

    • msToRun: number

    Returns void