Command
Explanation
Fake timers allow you to control time in tests, useful for testing timeouts and intervals.
Examples
Enable fake timers
Advance time by 1 second
Run all pending timers
Fake timers allow you to control time in tests, useful for testing timeouts and intervals.
Enable fake timers
Advance time by 1 second
Run all pending timers