hunk.code_window:     .then(() => waitForAnyProcessOutputToMatch(
           /webpack: bundle is now VALID|webpack: Compiled successfully./, 5000))
       // Count the bundles.
       .then(({ stdout }) => {
         let newNumberOfChunks = stdout.split(chunkRegExp).length;
  
hunk.labels: keep replace keep keep keep
hunk.after_edit:         /webpack: bundle is now VALID|webpack: Compiled successfully./, 10000))
  
hunk.file_path: tests/e2e/tests/build/rebuild.ts
hunk.type: replace
file: import {ng} from '../../utils/process';
  import {expectFileToMatch} from '../../utils/fs';
  import {expectGitToBeClean} from '../../utils/git';
  import {expectToFail} from '../../utils/utils';
  
  
  export default function() {
    // Try a prod build.
    return ng('build', '--env=prod')
      .then(() => expectFileToMatch('dist/main.bundle.js', 'production: true'))
      .then(() => expectGitToBeClean())
  
      // Build fails on invalid build target
      .then(() => expectToFail(() => ng('build', '--target=potato')))
  
      // This is a valid target.
      .then(() => ng('build', '--target=production'));
  }
  