Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface FakeTimeOptions
import { type FakeTimeOptions } from "https://deno.land/std@0.145.0/testing/time.ts";

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.