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

Method toHaveLength

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

* Used to check that an object has a `.length` property * and it is set to a certain numeric value.

(expected: number)

Source from the content-addressed store, hash-verified

255 * and it is set to a certain numeric value.
256 */
257 toHaveLength(expected: number): R;
258 /**
259 * Use to test the specific value that a mock function returned for the nth call.
260 * If the nth call to the mock function threw an error, then this matcher will fail

Calls

no outgoing calls

Tested by 2

testPathFunction · 0.64
defineTestsFunction · 0.64