( hint: string, // assertion returned from call to matcherHint generic: string, // condition which correct value must fulfill specific?: string, // incorrect value returned from call to printWithType )
| 510 | }; |
| 511 | |
| 512 | export const matcherErrorMessage = ( |
| 513 | hint: string, // assertion returned from call to matcherHint |
| 514 | generic: string, // condition which correct value must fulfill |
| 515 | specific?: string, // incorrect value returned from call to printWithType |
| 516 | ): string => |
| 517 | `${hint}\n\n${chalk.bold('Matcher error')}: ${generic}${ |
| 518 | typeof specific === 'string' ? `\n\n${specific}` : '' |
| 519 | }`; |
| 520 | |
| 521 | // Display assertion for the report when a test fails. |
| 522 | // New format: rejects/resolves, not, and matcher name have black color |
no outgoing calls
no test coverage detected