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

Method toBeTruthy

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

* Use when you don't care what a value is, you just want to ensure a value * is true in a boolean context. In JavaScript, there are six falsy values: * `false`, `0`, `''`, `null`, `undefined`, and `NaN`. Everything else is truthy.

()

Source from the content-addressed store, hash-verified

202 * `false`, `0`, `''`, `null`, `undefined`, and `NaN`. Everything else is truthy.
203 */
204 toBeTruthy(): R;
205 /**
206 * Used to check that a variable is undefined.
207 */

Calls

no outgoing calls

Tested by 5

defineTestsFunction · 0.64
throwsFunction · 0.64
redeclareFunction · 0.64
noAssertionsFunction · 0.64