79677529

Date: 2025-06-24 12:00:49
Score: 1.5
Natty:
Report link

Turns out this simply needs vi.runAllTimersAsync() instead. Then it works.

Of course stubbing setTimeout() is also an option.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zwirbeltier