[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: fix typo in `fakeTimers.shouldClearNativeTimers` option (#6743)

Co-authored-by: Michael Nwani <mnwani@atlassian.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>

authored by

Michael Nwani
Michael Nwani
Hiroshi Ogawa
and committed by
GitHub
(Oct 28, 2024, 1:38 PM +0100) d54eb352 0df44c0e

+2 -2
+2 -2
docs/config/index.md
··· 2381 2381 #### fakeTimers.shouldClearNativeTimers 2382 2382 2383 2383 - **Type:** `boolean` 2384 - - **Default:** `false` 2384 + - **Default:** `true` 2385 2385 2386 - Tells fake timers to clear "native" (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by default, leading to potentially unexpected behavior if timers existed prior to starting fake timers session. 2386 + Tells fake timers to clear "native" (i.e. not fake) timers by delegating to their respective handlers. When disabled, it can lead to potentially unexpected behavior if timers existed prior to starting fake timers session. 2387 2387 2388 2388 ### workspace<NonProjectOption /> {#workspace} 2389 2389