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

Function formatExpected

packages/expect/src/toThrowMatchers.ts:404–405  ·  view source on GitHub ↗
(label: string, expected: unknown)

Source from the content-addressed store, hash-verified

402};
403
404const formatExpected = (label: string, expected: unknown) =>
405 `${label + printExpected(expected)}\n`;
406
407const formatReceived = (
408 label: string,

Callers 4

toThrowExpectedRegExpFunction · 0.85
toThrowExpectedObjectFunction · 0.85
toThrowExpectedStringFunction · 0.85

Calls 1

printExpectedFunction · 0.90

Tested by

no test coverage detected