hunk.code_window:       export function funky(value: number): number {
           return value + 1;
         }
       `))
       // Should trigger a rebuild, this time an error is expected.
       .then(() => waitForAnyProcessOutputToMatch(doneRe, 5000))
       .then(({ stdout }) => {
         if (!/ERROR in .*\/src\/main\.ts \(/.test(stdout)) {
           throw new Error('Expected an error but none happened.');
         }
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     .then(() => waitForAnyProcessOutputToMatch(doneRe, 10000))
  
hunk.file_path: tests/e2e/tests/build/rebuild-deps-type-check.ts
hunk.type: replace
file: import {
    insertImport as _insertImport,
    addImportToModule as _addImportToModule,
    NodeHost
  } from '../../../packages/@angular/cli/lib/ast-tools';
  
  
  export function insertImport(file: string, symbol: string, module: string) {
    return _insertImport(file, symbol, module)
      .then(change => change.apply(NodeHost));
  }
  
  export function addImportToModule(file: string, symbol: string, module: string) {
    return _addImportToModule(file, symbol, module)
      .then(change => change.apply(NodeHost));
  }
  