hunk.code_window: /**
    * Enumerate loaders and their dependencies from this file to let the dependency validator
    * know they are used.
    *
    * require('source-map-loader')
    * require('sourcemap-istanbul-instrumenter-loader')
    *
    */
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:  * require('istanbul-instrumenter-loader')
  
hunk.file_path: packages/@angular/cli/models/webpack-configs/test.js
hunk.type: replace
file: 'use strict';
  
  var Promise   = require('../ext/promise');
  var fs        = require('fs-extra');
  var temp      = require('temp');
  var mkdir     = Promise.denodeify(fs.mkdir);
  var mkdirTemp = Promise.denodeify(temp.mkdir);
  
  function exists(dir) {
    return new Promise(function(resolve) {
      fs.exists(dir, resolve);
    });
  }
  
  function mkTmpDirIn(dir) {
    return exists(dir).then(function(doesExist) {
      if (!doesExist) {
        return mkdir(dir);
      }
    }).then(function() {
      return mkdirTemp({ dir: dir });
    });
  }
  
  module.exports = mkTmpDirIn;
  