···3232}
3333```
34343535-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:
3636-3737-```ts
3838-import { test } from 'vitest'
3939-4040-test('flaky test', () => {}, { retry: 3 }) // [!code --]
4141-test('flaky test', { retry: 3 }, () => {}) // [!code ++]
4242-```
4343-4435When 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.
45364637::: tip