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

Function assertThrowingMatcherHint

packages/jest-circus/src/formatNodeAssertErrors.ts:99–105  ·  view source on GitHub ↗
(operatorName: string)

Source from the content-addressed store, hash-verified

97};
98
99const assertThrowingMatcherHint = (operatorName: string) =>
100 operatorName
101 ? chalk.dim('assert') +
102 chalk.dim(`.${operatorName}(`) +
103 chalk.red('function') +
104 chalk.dim(')')
105 : '';
106
107const assertMatcherHint = (
108 operator: string | undefined | null,

Callers 1

assertionErrorMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected