hunk.code_window:     "rootDir": ".",
       "sourceMap": true,
       "sourceRoot": "",
       "inlineSourceMap": true,
       "target": "es5",
       "lib": [
         "es2016"
       ],
       "baseUrl": "",
       "typeRoots": [
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:     "target": "es6",
  
hunk.file_path: tsconfig.json
hunk.type: replace
file: import {ng, killAllProcesses} from '../../utils/process';
  import {expectToFail} from '../../utils/utils';
  import {ngServe} from '../../utils/project';
  
  
  export function runServeAndE2e(...args: string[]) {
    return ngServe(...args)
      .then(() => ng('e2e'))
      .then(() => killAllProcesses(), (err: any) => {
        killAllProcesses();
        throw err;
      });
  }
  
  export default function() {
    // This is supposed to fail without serving first...
    return expectToFail(() => ng('e2e'))
      // These should work.
      .then(() => runServeAndE2e())
      .then(() => runServeAndE2e('--prod'))
      .then(() => runServeAndE2e('--aot'))
      .then(() => runServeAndE2e('--aot', '--prod'));
  }
  