Skip to content

Commit

Permalink
Remove unnecessary default value, add log message for target file
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Feb 23, 2022
1 parent 5706a18 commit 16d3e64
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ export class FunctionalTestRunner {

let reporter;
let reporterOptions;
if (config.get('mochaOpts.dryRun', false)) {
if (config.get('mochaOpts.dryRun')) {
// override default reporter for dryRun results
const targetFile = Path.resolve(REPO_ROOT, 'target/functional-tests/dryRunOutput.json');
reporter = 'json';
reporterOptions = {
output: Path.resolve(REPO_ROOT, 'target/functional-tests/dryRunOutput.json'),
output: targetFile,
};
this.log.info(`Dry run results will be stored in ${targetFile}`);
}

const mocha = await setupMocha(
Expand Down

0 comments on commit 16d3e64

Please sign in to comment.