UNPKG

time-fast-forward

Version:

Fake the system time (Date, hrtime) in your tests, without freezing it (unlike in many other libraries). Freeze only when you need.

4 lines (3 loc) 184 B
export declare const shiftTimeBy: (milliseconds: number) => void; export declare const jumpToTime: (value: number | string | Date) => void; export declare const resetTime: () => void;