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

Method toThrow

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

* Used to test that a function throws when it is called.

(expected?: unknown)

Source from the content-addressed store, hash-verified

309 * Used to test that a function throws when it is called.
310 */
311 toThrow(expected?: unknown): R;
312}
313
314/**

Calls

no outgoing calls

Tested by

no test coverage detected