colingo

colingo/time-mock

Easily manipulate and mock out time in your tests

JavaScript
3
1
MIT License

time-mock is a utility for creating mockable versions of setTimeout and Date.now functions, allowing developers to control and advance time in their tests. It's designed for testing scenarios where time-based functionality needs to be isolated and sped up, such as testing timeout-dependent code without actual delays. The library is particularly useful for unit testing modules that rely on timers and timestamps.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

Raynos's profile
Raynos
10 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet