Skip to content

Glossary: System Design Basics in JavaScript

Clock (injectable / fake clock)

Also written: fake clock

A function that returns the current time, passed in as a parameter. A test can pass a fake clock and move it by hand instead of waiting 60 real seconds.

Where the book teaches it

Related terms

node:test