* Runs all pending microtasks. * * @example Usage * ```ts * import { FakeTime } from "@std/testing/time"; * import { assert } from "@std/assert"; * * const fakeTime = new FakeTime(15_000); * * let called = false; * * Promise.resolve().then(() => { called = true });
()
| 615 | * ``` |
| 616 | */ |
| 617 | async runMicrotasks() { |
| 618 | await this.delay(0); |
| 619 | } |
| 620 | |
| 621 | /** |
| 622 | * Adds the specified number of milliseconds to the fake time. |
no test coverage detected