Before()

in features/support/hook.js [29:37]


Before(function (testCase) {
  if (isFirstBeforeRun() && fs.existsSync(TMP_DIR_PATH)) {
    remove.removeSync(TMP_DIR_PATH);
  }
  iterationNumber += 1;
  this.testCase = testCase;
  this.tmpDirectoryPath = tmpDirectoryPath(iterationNumber);
  mkdirp.sync(this.tmpDirectoryPath);
});