Start typing to search packages!
jest-fake-timers
By @roblox
Roblox
Mirrored from Wallyjest-fake-timers
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-fake-timers
Fake timers implementation for Jest Roblox. Activated via jest.useFakeTimers(). The API is aligned with Jest's "modern" fake timers, but the implementation is built natively for the Roblox engine.
Mocked timers
delay,tick,timeos.time,os.clocktask.delay,task.cancel,task.waitDateTime.now
Engine frame time
Jest Roblox fake timers support a configurable engine frame time via jest.setEngineFrameTime(ms). By default this is 0 (continuous time). When set, timers are processed in batches delineated by frame boundaries — a timer fires in the first frame after its scheduled time.
Package Details
Install command (Click to copy)
Version
3.20.1
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
