Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mock/time.ts>FakeTime#runAll

Utilities to help mock behavior, spy on function calls, stub methods, and fake time for tests.
Very Popular
Latest
method FakeTime.prototype.runAll
import { FakeTime } from "https://deno.land/x/mock@0.15.2/time.ts";

Advances time forward to the next due timer until there are no pending timers remaining. If the timers create additional timers, they will be run too. If there is an interval, time will keep advancing forward until the interval is cleared.