[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: remove outdated note (#6838)

authored by

Vladimir and committed by
GitHub
(Nov 1, 2024, 9:45 PM +0100) 1a8d6709 234674da

-9
-9
docs/api/index.md
··· 32 32 } 33 33 ``` 34 34 35 - Vitest 1.3.0 deprecates the use of options as the last parameter. You will see a deprecation message until 2.0.0 when this syntax will be removed. If you need to pass down options, use `test` function's second argument: 36 - 37 - ```ts 38 - import { test } from 'vitest' 39 - 40 - test('flaky test', () => {}, { retry: 3 }) // [!code --] 41 - test('flaky test', { retry: 3 }, () => {}) // [!code ++] 42 - ``` 43 - 44 35 When a test function returns a promise, the runner will wait until it is resolved to collect async expectations. If the promise is rejected, the test will fail. 45 36 46 37 ::: tip