From b8cb62104e79d5148323179b78ea0dea3ba129ff Mon Sep 17 00:00:00 2001 From: Daniel Sidhion Date: Tue, 29 Jul 2025 05:54:48 -0700 Subject: [PATCH] docs: clarify condition on expect.anything (#8356) --- docs/api/expect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/expect.md b/docs/api/expect.md index 0866526cb..ef2e17bca 100644 --- a/docs/api/expect.md +++ b/docs/api/expect.md @@ -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'