Skip to content

Commit

Permalink
fix: fix api dryrun always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Warnier committed Jan 13, 2021
1 parent 7af910c commit 58baad0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ module.exports = class GherkinTestcafeRunner extends TestcafeRunner {
if (this.apiMethodWasCalled.dryRun) {
throw new GeneralError(RUNTIME_ERRORS.multipleAPIMethodCallForbidden, 'dryRun');
}

process.argv.push('--dry-run', enabled);
if (enabled) {
process.argv.push('--dry-run');
}
this.apiMethodWasCalled.dryRun = true;

return this;
Expand Down

0 comments on commit 58baad0

Please sign in to comment.