Skip to content

Commit

Permalink
Feat: customize reportDir
Browse files Browse the repository at this point in the history
Hey guy, thanks for the great work of `mochawesome-report-generator`.

 I've found for `reportDir` option, it was assigned to `path.resolve(process.cwd(), reportDir, filename)`. But sometimes we need to specify `reportDir` to some other path which is not based on the current working directory of the Node.js process. 

so `path.resolve(process.cwd(), reportDir, filename)` is actually not 100% customized.I've made the PR to add a `useCwd` option which will enable developer to customized the `reportDir`(actually I need this for my project).

Thanks again and wait for your reply
  • Loading branch information
HOUCe authored Nov 8, 2019
1 parent 1502b9c commit 2faa800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getTimestampFormat(timestamp) {
return 'isoDateTime';
default:
return timestamp;
}f
}
}

/**
Expand Down

0 comments on commit 2faa800

Please sign in to comment.