File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/visual-reporter/scripts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @wdio/visual-reporter " : patch
3+ ---
4+
5+ fix paths for cli
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { copyDirectory } from './utils/fileHandling.js'
1414async function main ( ) {
1515 //
1616 // Set some initial variables
17- let filePath = getArgValue ( '--jsonOutput' )
18- let reportPath = getArgValue ( '--reportFolder' )
17+ const filePath = getArgValue ( '--jsonOutput' ) ? resolve ( process . cwd ( ) , getArgValue ( '--jsonOutput' ) ) : undefined
18+ const reportPath = getArgValue ( '--reportFolder' ) ? resolve ( process . cwd ( ) , getArgValue ( '--reportFolder' ) ) : undefined
1919 const logLevel = getArgValue ( '--logLevel' )
2020 const __filename = fileURLToPath ( import . meta. url )
2121 const __dirname = dirname ( __filename )
You can’t perform that action at this time.
0 commit comments