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

Function restartTest

scripts/windows-testing/parallel-executor.mjs:100–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 const proc = child_process.spawn(cmd, args, { ...options, stdio: 'pipe' });
99 const syncStatus = () => reportStatus({ current, max, state, startTime });
100 const restartTest = () => {
101 console.error(output);
102 console.error(`Test restarted due to failure.`);
103 resolve(spawnTest(cmd, args, options, reportStatus, startTime, testAttempts));
104 };
105 const onOutputChange = () => {
106 // Extract initial status (i.e. how many tests there are in this shard)
107 if (initialStatusRegex.test(output) && state === 'setup') {

Callers 1

spawnTestFunction · 0.85

Calls 3

spawnTestFunction · 0.85
errorMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected