(id, specsResults)
| 536 | ] |
| 537 | ]; |
| 538 | function formatComponentSpecsFailed(id, specsResults) { |
| 539 | // $FlowFixMe this.specsResults is not null at this point |
| 540 | const specsResultsPretty = specsResults ? paintSpecsResults(specsResults).join('\n') : ''; |
| 541 | const componentIdPretty = id ? chalk.bold.white(id) : ''; |
| 542 | const specsResultsAndIdPretty = `${componentIdPretty}${specsResultsPretty}\n`; |
| 543 | const additionalInfo = |
| 544 | 'component tests failed. please make sure all tests pass before tagging a new version or use the "--force" flag to force-tag components.\nto view test failures, please use the "--verbose" flag or use the "bit test" command'; |
| 545 | const res = `${specsResultsAndIdPretty}${additionalInfo}`; |
| 546 | return res; |
| 547 | } |
| 548 | |
| 549 | export function findErrorDefinition(err: Error) { |
| 550 | const error = errorsMap.find(([ErrorType]) => { |
no test coverage detected