From c6cd9242b5a35cc730b135c2ad290faabc818a16 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Thu, 1 Jun 2023 01:46:52 -0700 Subject: [PATCH] docs: improve `Timers` section of `mocking.md` (#3482) --- docs/guide/mocking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/mocking.md b/docs/guide/mocking.md index 4b5fe78915a7..e5abbc84f691 100644 --- a/docs/guide/mocking.md +++ b/docs/guide/mocking.md @@ -324,7 +324,7 @@ There is much more to MSW. You can access cookies and query parameters, define m ## Timers -Whenever we test code that involves timeouts or intervals, instead of having our tests wait it out or timeout. We can speed up our tests by using "fake" timers by mocking calls to `setTimeout` and `setInterval`, too. +When we test code that involves timeouts or intervals, instead of having our tests wait it out or timeout, we can speed up our tests by using "fake" timers that mock calls to `setTimeout` and `setInterval`. See the [`vi.useFakeTimers` api section](/api/vi#vi-usefaketimers) for a more in depth detailed API description.