The @sinonjs/fake-timers package had consistent releases from 2020 to 2024, with peaks in early 2021 and mid-2024. Releases were most frequent in 2021 and 2024. There have been no releases in the first eight months of 2025. The most recent version available is 14.0.0, published in December 2024.
@sinonjs/fake-timers npm package downloads show a generally upward trend from March 2024 to August 2025, peaking in June 2025. However, September 2025, being incomplete, exhibits a significantly lower download count, suggesting a potential dip or simply reflecting the partial month's data.
@sinonjs/fake-timers provides a powerful and flexible way to manipulate time in JavaScript tests. It meticulously simulates the behavior of setTimeout, setInterval, Date, nextTick, queueMicrotask, requestAnimationFrame, and clearImmediate while preserving the original implementations. This package allows for precise control over timing-related logic, simplifying testing of asynchronous code without relying on real-time delays. It is a crucial tool for improving test speed, reliability, and determinism in projects that deal with asynchronous events.