Testing tip: ban setTimeout in CI — use fake timers or wait on real events

DanielLockyer · x · 2026-11-19

Daniel Lockyer offers a blanket CI/test recommendation: ban all uses of setTimeout. Use fake timers instead, or wait on the actual event. Arbitrary timed waits are a common source of flaky tests; this rule makes suites faster and far more reliable.

Original post →

More from coding & agent

coding & agent channel →