hunk.code_window:           });
         })
         .then(() => {
           if (this._compilation.errors == 0) {
             this._compilerHost.resetChangedFileTracker();
           }
           cb();
         }, (err: any) => {
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:         } else {
             this._failedCompilation = true;
  
hunk.file_path: packages/@ngtools/webpack/src/plugin.ts
hunk.type: add
file: import {join} from 'path';
  import {ng} from '../../utils/process';
  import {expectFileToExist} from '../../utils/fs';
  import {updateJsonFile} from '../../utils/project';
  
  
  export default function() {
    const compDir = join('src', 'app', 'test-component');
  
    return Promise.resolve()
      .then(() => updateJsonFile('package.json', configJson => {
        delete configJson.name;
        return configJson;
      }))
      .then(() => ng('generate', 'component', 'test-component'))
      .then(() => expectFileToExist(compDir))
      .then(() => expectFileToExist(join(compDir, 'test-component.component.ts')))
      .then(() => expectFileToExist(join(compDir, 'test-component.component.spec.ts')))
      .then(() => expectFileToExist(join(compDir, 'test-component.component.html')))
      .then(() => expectFileToExist(join(compDir, 'test-component.component.css')))
  
      // Try to run the unit tests.
      .then(() => ng('test', '--single-run'));
  }
  