hunk.code_window:   });
   }, Promise.resolve())
   .then(
     () => console.log(green('Done.')),
     (err) => {
       console.log('\n');
       console.error(red(`Test "${currentFileName}" failed...`));
       console.error(red(err.message));
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:   () => {
       console.log(green('Done.'));
       process.exit(0);
     },
  
hunk.file_path: tests/e2e_runner.js
hunk.type: replace
file: import * as rimraf from 'rimraf';
  import * as path from 'path';
  const Task = require('ember-cli/lib/models/task');
  import * as webpack from 'webpack';
  import { BuildOptions } from '../commands/build';
  import { NgCliWebpackConfig } from '../models/webpack-config';
  import { webpackOutputOptions } from '../models/';
  
  // Configure build and output;
  let lastHash: any = null;
  
  export default <any>Task.extend({
    // Options: String outputPath
    run: function (runTaskOptions: BuildOptions) {
  
      const project = this.cliProject;
  
      rimraf.sync(path.resolve(project.root, runTaskOptions.outputPath));
      const config = new NgCliWebpackConfig(
        project,
        runTaskOptions.target,
        runTaskOptions.environment,
        runTaskOptions.outputPath,
        runTaskOptions.baseHref
      ).config;
  
      const webpackCompiler: any = webpack(config);
  
      const ProgressPlugin  = require('webpack/lib/ProgressPlugin');
  
      webpackCompiler.apply(new ProgressPlugin({
        profile: true
      }));
  
      return new Promise((resolve, reject) => {
        webpackCompiler.run((err: any, stats: any) => {
          // Don't keep cache
          // TODO: Make conditional if using --watch
          webpackCompiler.purgeInputFileSystem();
  
          if (err) {
            lastHash = null;
            console.error(err.stack || err);
            if (err.details) {
              console.error(err.details);
            }
            reject(err.details);
          }
  
          if (stats.hash !== lastHash) {
            lastHash = stats.hash;
            process.stdout.write(stats.toString(webpackOutputOptions) + '\n');
          }
          resolve();
        });
      });
    }
  });
  