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

Function operatorMessage

packages/jest-circus/src/formatNodeAssertErrors.ts:90–97  ·  view source on GitHub ↗
(operator: string | undefined)

Source from the content-addressed store, hash-verified

88};
89
90const operatorMessage = (operator: string | undefined) => {
91 const niceOperatorName = getOperatorName(operator, '');
92 const humanReadableOperator = humanReadableOperators[niceOperatorName];
93
94 return typeof operator === 'string'
95 ? `${humanReadableOperator || niceOperatorName} to:\n`
96 : '';
97};
98
99const assertThrowingMatcherHint = (operatorName: string) =>
100 operatorName

Callers 1

assertionErrorMessageFunction · 0.70

Calls 1

getOperatorNameFunction · 0.70

Tested by

no test coverage detected