Skip to content

Commit

Permalink
docs: improve Timers section of mocking.md (#3482)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Jun 1, 2023
1 parent 2718545 commit c6cd924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/mocking.md
Expand Up @@ -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.

Expand Down

0 comments on commit c6cd924

Please sign in to comment.