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

x/hex/src/lib/mod.ts>stdx.testing.time.FakeTimeOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface stdx.testing.time.FakeTimeOptions
import { type stdx } from "https://deno.land/x/hex@0.6.5/src/lib/mod.ts";
const { FakeTimeOptions } = stdx.testing.time;

Properties

advanceRate: number

The rate relative to real time at which fake time is updated. By default time only moves forward through calling tick or setting now. Set to 1 to have the fake time automatically tick foward at the same rate in milliseconds as real time.

optional
advanceFrequency: number

The frequency in milliseconds at which fake time is updated. If advanceRate is set, we will update the time every 10 milliseconds by default.