mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
docs: clarify condition on expect.anything (#8356)
This commit is contained in:
parent
13f9462293
commit
b8cb62104e
@ -1502,7 +1502,7 @@ test.each(errorDirs)('build fails with "%s"', async (dir) => {
|
||||
|
||||
- **Type:** `() => any`
|
||||
|
||||
This asymmetric matcher, when used with equality check, will always return `true`. Useful, if you just want to be sure that the property exist.
|
||||
This asymmetric matcher matches anything except `null` or `undefined`. Useful if you just want to be sure that a property exists with any value that's not either `null` or `undefined`.
|
||||
|
||||
```ts
|
||||
import { expect, test } from 'vitest'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user