Skip to content

Commit 89a0ea9

Browse files
committed
test: fix wait utils fake timer coverage
1 parent a6dc1db commit 89a0ea9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/wait-utils.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ describe("wait utils", () => {
3030

3131
it("shows countdown toasts and sleeps in intervals", async () => {
3232
const showToast = vi.fn(async () => undefined);
33-
const sleep = vi.fn(async () => undefined);
33+
const sleep = vi.fn(async (ms: number) => {
34+
await vi.advanceTimersByTimeAsync(ms);
35+
});
3436
await sleepWithCountdown({
3537
totalMs: 10_000,
3638
message: "Waiting",

0 commit comments

Comments
 (0)