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

x/mock/time.ts>FakeTime#tickAsync

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

Runs all pending microtasks then adds the specified number of milliseconds to the fake time. This will call any functions waiting to be called between the current and new fake time.

Parameters

optional
ms = [UNSUPPORTED]

Returns

Promise<void>