hunk.code_window:         this._compilerHost.writeFile(filePath, options.hostOverrideFileSystem[filePath], false);
         }
       }
       this._program = ts.createProgram(
         this._rootFilePath, this._compilerOptions, this._compilerHost);
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit:     // Override some files in the FileSystem with paths from the actual file system.
       if (options.hasOwnProperty('hostReplacementPaths')) {
         for (const filePath of Object.keys(options.hostReplacementPaths)) {
           const replacementFilePath = options.hostReplacementPaths[filePath];
           const content = this._compilerHost.readFile(replacementFilePath);
           this._compilerHost.writeFile(filePath, content, false);
         }
       }
  
hunk.file_path: packages/@ngtools/webpack/src/plugin.ts
hunk.type: add
file: import {ng} from '../../../utils/process';
  import {createProject} from '../../../utils/project';
  import {expectToFail} from '../../../utils/utils';
  import {expectGitToBeClean} from '../../../utils/git';
  
  
  export default function() {
    return Promise.resolve()
      .then(() => createProject('new-project', '--skip-commit'))
      .then(() => expectToFail(() => expectGitToBeClean()))
  
      // Try to run the unit tests.
      .then(() => ng('test', '--single-run'));
  }
  