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

Function printExpectedArgs

packages/expect/src/spyMatchers.ts:41–44  ·  view source on GitHub ↗
(expected: Array<unknown>)

Source from the content-addressed store, hash-verified

39const NO_ARGUMENTS = 'called with 0 arguments';
40
41const printExpectedArgs = (expected: Array<unknown>): string =>
42 expected.length === 0
43 ? NO_ARGUMENTS
44 : expected.map(arg => printExpected(arg)).join(', ');
45
46const printReceivedArgs = (
47 received: Array<unknown>,

Calls 1

printExpectedFunction · 0.90

Tested by

no test coverage detected