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

std/testing/time.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.155.0/testing/time.ts";

Utilities for mocking time while testing.

Classes

Overrides the real Date object and timer functions with fake ones that can be controlled through the fake time instance.

An error related to faking time.