MCPcopy Index your code
hub / github.com/angular/angular-cli / printFooter

Function printFooter

tests/e2e_runner.ts:367–380  ·  view source on GitHub ↗
(testName: string, type: 'setup' | 'initializer' | 'test', startTime: number)

Source from the content-addressed store, hash-verified

365}
366
367function printFooter(testName: string, type: 'setup' | 'initializer' | 'test', startTime: number) {
368 const capsType = type[0].toUpperCase() + type.slice(1);
369
370 // Round to hundredth of a second.
371 const t = Math.round((Date.now() - startTime) / 10) / 100;
372 console.log(
373 styleText(['green'], `${capsType} "`) +
374 styleText(['bold', 'blue'], testName) +
375 styleText(['green'], '" took ') +
376 styleText(['bold', 'blue'], t.toFixed(2)) +
377 styleText(['green'], 's...'),
378 );
379 console.log('');
380}
381
382// Collect the packages passed as arguments and return as {package-name => pkg-path}
383async function findPackageTars(): Promise<{ [pkg: string]: PkgInfo }> {

Callers 1

runStepsFunction · 0.85

Calls 1

logMethod · 0.65

Tested by

no test coverage detected