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

Function toThrowErrorMatchingSnapshot

packages/jest-snapshot/src/index.ts:422–438  ·  view source on GitHub ↗
(received, hint, fromPromise)

Source from the content-addressed store, hash-verified

420 Context,
421 [hint?: string, fromPromise?: boolean]
422> = function (received, hint, fromPromise) {
423 const matcherName = 'toThrowErrorMatchingSnapshot';
424
425 // Future breaking change: Snapshot hint must be a string
426 // if (hint !== undefined && typeof hint !== string) {}
427
428 return _toThrowErrorMatchingSnapshot(
429 {
430 context: this,
431 hint,
432 isInline: false,
433 matcherName,
434 received,
435 },
436 fromPromise,
437 );
438};
439
440export const toThrowErrorMatchingInlineSnapshot: MatcherFunctionWithContext<
441 Context,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected