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

x/mock/mod.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/mod.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>