Skip to content

utils.sleep()

We can wait with _spy.utils.sleep().

js
await _spy.utils.sleep(1000);
ts
sleep(
  ms: number,
): Promise<void>;