From a245c283141116270b209ff8b27535979fb486b8 Mon Sep 17 00:00:00 2001 From: xygodcyx <109750146+xygodcyx@users.noreply.github.com> Date: Mon, 30 Mar 2026 07:56:27 +0800 Subject: [PATCH] docs: fix misleading mock reset example in mocking timers section (#10019) --- docs/guide/mocking/timers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/mocking/timers.md b/docs/guide/mocking/timers.md index 7caa9cc73..29a33c88d 100644 --- a/docs/guide/mocking/timers.md +++ b/docs/guide/mocking/timers.md @@ -24,7 +24,7 @@ describe('delayed execution', () => { vi.useFakeTimers() }) afterEach(() => { - vi.restoreAllMocks() + vi.clearAllMocks() }) it('should execute the function', () => { executeAfterTwoHours(mock) -- 2.51.2