MCPcopy
hub / github.com/jestjs/jest / toBeNull

Method toBeNull

packages/expect/src/types.ts:198–198  ·  view source on GitHub ↗

* This is the same as `.toBe(null)` but the error messages are a bit nicer. * So use `.toBeNull()` when you want to check that something is null.

()

Source from the content-addressed store, hash-verified

196 * So use `.toBeNull()` when you want to check that something is null.
197 */
198 toBeNull(): R;
199 /**
200 * Use when you don't care what a value is, you just want to ensure a value
201 * is true in a boolean context. In JavaScript, there are six falsy values:

Calls

no outgoing calls

Tested by

no test coverage detected