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.
More from coding & agent
- DataTalks.Club launches free 5-week course on GPU-less generative media agents — Al_Grigor · 2026-11-19
- Codex refuses to write security advisories for bugs it found itself, dev says — matthew_d_green · 2026-11-19
- Claude-powered guide maps 6 GTA 6 money routes as pre-orders top $1.5B — socialwithaayan · 2026-11-19
- Booking travel remains the hardest agent task, dev falls back to Mac-local setup — lucasmeijer · 2026-11-19
- ElevenLabs launches Scribe v3 Live Medical with 10,000-entry custom term lists — HeyAmit_ · 2026-11-19
- Developer on why personal AI agents still fail: 1Password auth, Mac control, mobile use — lucasmeijer · 2026-11-19