Fake Timers
Advance JavaScript timers without waiting for real-world time during testing.
sinonjs · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install @sinonjs/[email protected]. Schedule one sample reminder and simulate 100 milliseconds.
What we tested
15.5.0. Schedule one sample reminder and simulate 100 milliseconds. Fired the synthetic reminder only after the full 100 virtual milliseconds.