CrabScout. The best software around.
Search

Fake Timers

Advance JavaScript timers without waiting for real-world time during testing.

sinonjs · Code and testing

GitHub projectOpen source Open on GitHub

How 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.

Reviews

Rate this repo

More to explore

  • GleamWrite typed code for the Erlang virtual machine or JavaScript.GitHub projectOpen source
  • PixiSet up reproducible software environments for projects.GitHub projectOpen source
  • LycheeCheck that document links point to reachable paths.GitHub projectOpen source

Share

What the labels mean

Save to your library