From 2faa800c34af1018b26533773bebf6baa3a36665 Mon Sep 17 00:00:00 2001 From: HOU Ce <594965698@qq.com> Date: Fri, 8 Nov 2019 19:50:53 +0800 Subject: [PATCH] Feat: customize reportDir 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 --- src/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/main.js b/src/lib/main.js index b948743b..904267c5 100644 --- a/src/lib/main.js +++ b/src/lib/main.js @@ -80,7 +80,7 @@ function getTimestampFormat(timestamp) { return 'isoDateTime'; default: return timestamp; - }f + } } /**