e2e/shared/common.js
function rimrafPromise(dir) {
  return new Promise((resolve, reject) => {
    rimraf(dir, err => {
      if (err) {
        reject(err);
      } else {
        resolve();
      }
    });
  });
}
function rimrafPromise(dir) {
  return new Promise((resolve, reject) => {
    rimraf(dir, err => {
      if (err) {
        reject(err);
      } else {
        resolve();
      }
    });
  });
}
function rimrafPromise ( dir ) { return new Promise ( ( resolve , reject ) => { rimraf ( dir , err => { if ( err ) { reject ( err ) ; } else { resolve ( ) ; } } ) ; } ) ; }
Wraps the rimraf command in a promise.
Wraps the rimraf command in a promise .