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

Function operatorMessage

packages/jest-jasmine2/src/assertionErrorMessage.ts:48–55  ·  view source on GitHub ↗
(operator: string | null)

Source from the content-addressed store, hash-verified

46};
47
48const operatorMessage = (operator: string | null) => {
49 const niceOperatorName = getOperatorName(operator, '');
50 const humanReadableOperator = humanReadableOperators[niceOperatorName];
51
52 return typeof operator === 'string'
53 ? `${humanReadableOperator || niceOperatorName} to:\n`
54 : '';
55};
56
57const assertThrowingMatcherHint = (operatorName: string) =>
58 operatorName

Callers 1

assertionErrorMessageFunction · 0.70

Calls 1

getOperatorNameFunction · 0.70

Tested by

no test coverage detected