hunk.code_window:   typeChecking?: boolean;
     skipCodeGeneration?: boolean;
     hostOverrideFileSystem?: { [path: string]: string };
     i18nFile?: string;
     i18nFormat?: string;
     locale?: string;
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:   hostReplacementPaths?: { [path: string]: string };
  
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 appDir = join('src', 'app');
  
    return Promise.resolve()
      .then(() => updateJsonFile('.angular-cli.json', configJson => {
        const comp = configJson.defaults.component;
        comp.flat = true;
      }))
      .then(() => ng('generate', 'component', 'test-component'))
      .then(() => expectFileToExist(appDir))
      .then(() => expectFileToExist(join(appDir, 'test-component.component.ts')))
      .then(() => expectFileToExist(join(appDir, 'test-component.component.spec.ts')))
      .then(() => expectFileToExist(join(appDir, 'test-component.component.html')))
      .then(() => expectFileToExist(join(appDir, 'test-component.component.css')))
  
      // Try to run the unit tests.
      .then(() => ng('test', '--single-run'));
  }
  