hunk.code_window:                 = `github:angular/${pkgName}-builds${label}`;
               });
           });
         }
       })
       .then(() => silentNpm('install'))
       // Force sourcemaps to be from the root of the filesystem.
       .then(() => updateTsConfig(json => {
         json['compilerOptions']['sourceRoot'] = '/';
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     .then(() => updateJsonFile('.angular-cli.json', configJson => {
         // Auto-add some flags to ng commands that build or test the app.
         // --no-progress disables progress logging, which in CI logs thousands of lines.
         // --no-sourcemaps disables sourcemaps, making builds faster.
         // We add these flags before other args so that they can be overriden.
         // e.g. `--no-sourcemaps --sourcemaps` will still generate sourcemaps.
         const defaults = configJson.defaults;
         defaults.build = {
           sourcemaps: false,
           progress: false
         };
       }))
  
hunk.file_path: tests/e2e/setup/500-create-project.ts
hunk.type: add
file: import {
    killAllProcesses,
    waitForAnyProcessOutputToMatch,
    silentExecAndWaitForOutputToMatch
  } from '../../utils/process';
  import { expectToFail } from '../../utils/utils';
  import { readFile, writeFile } from '../../utils/fs';
  
  
  // Karma is only really finished with a run when it shows a non-zero total time in the first slot.
  const karmaGoodRegEx = /Executed 3 of 3 SUCCESS \(\d+\.\d+ secs/;
  
  export default function () {
    let originalSpec: string;
    return silentExecAndWaitForOutputToMatch('ng', ['test', '--no-progress'], karmaGoodRegEx)
      .then(() => readFile('src/app/app.component.spec.ts'))
      .then((data) => originalSpec = data)
      // Trigger a failed rebuild, which shouldn't run tests again.
      .then(() => writeFile('src/app/app.component.spec.ts', '<p> definitely not typescript </p>'))
      .then(() => expectToFail(() => waitForAnyProcessOutputToMatch(karmaGoodRegEx, 10000)))
      // Restore working spec.
      .then(() => writeFile('src/app/app.component.spec.ts', originalSpec))
      .then(() => waitForAnyProcessOutputToMatch(karmaGoodRegEx, 10000))
      .then(() => killAllProcesses(), (err: any) => {
        killAllProcesses();
        throw err;
      });
  }
  