Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mock/time.ts>FakeTime#runAllAsync

Utilities to help mock behavior, spy on function calls, stub methods, and fake time for tests.
Very Popular
Latest
method FakeTime.prototype.runAllAsync
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. Runs all pending microtasks before each timer.

Returns

Promise<void>