MCPcopy
hub / github.com/teambit/bit / formatComponentSpecsFailed

Function formatComponentSpecsFailed

src/cli/default-error-handler.ts:538–547  ·  view source on GitHub ↗
(id, specsResults)

Source from the content-addressed store, hash-verified

536 ]
537];
538function 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
549export function findErrorDefinition(err: Error) {
550 const error = errorsMap.find(([ErrorType]) => {

Callers 1

Calls 1

paintSpecsResultsFunction · 0.90

Tested by

no test coverage detected