We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6dc1db commit 89a0ea9Copy full SHA for 89a0ea9
1 file changed
test/wait-utils.test.ts
@@ -30,7 +30,9 @@ describe("wait utils", () => {
30
31
it("shows countdown toasts and sleeps in intervals", async () => {
32
const showToast = vi.fn(async () => undefined);
33
- const sleep = vi.fn(async () => undefined);
+ const sleep = vi.fn(async (ms: number) => {
34
+ await vi.advanceTimersByTimeAsync(ms);
35
+ });
36
await sleepWithCountdown({
37
totalMs: 10_000,
38
message: "Waiting",
0 commit comments