(message: string, additionalInfo: any)
| 24 | |
| 25 | // Look for mutation name and color it red |
| 26 | function printErrorMessage(message: string, additionalInfo: any): void { |
| 27 | let messageToShow = message |
| 28 | const found = additionalInfo?.executedMutationNames?.find((v: string) => |
| 29 | message.includes(v) |
| 30 | ) |
| 31 | if (found) { |
| 32 | messageToShow = message.replace(found, chalk.red(found)) |
| 33 | } |
| 34 | messageToShow && logger.error(messageToShow) |
| 35 | } |
| 36 | |
| 37 | function processErrorArrayIfExists({ |
| 38 | errors, |
no outgoing calls
no test coverage detected