Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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