Skip to content

Commit 4b33091

Browse files
committed
fix: update condition of setting reporter
1 parent 4eb851c commit 4b33091

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • packages/vscode-wdio-worker/src

packages/vscode-wdio-worker/src/test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ export async function runTest(this: WorkerMetaContext, options: RunTestOptions):
5454
configFile = await creator(options.configPath, outputDir.json!)
5555
options.configPath = configFile
5656
wdioArgs.configPath = configFile
57-
}
58-
59-
// The `stdout` must be true because the name of the logger is
60-
// the name of the file and the initialization of Write Stream will fail.
61-
if (!isWindows()) {
57+
} else {
58+
// The `stdout` must be true because the name of the logger is
59+
// the name of the file and the initialization of Write Stream will fail.
6260
wdioArgs.reporters = [[VSCODE_REPORTER_PATH, { stdout: true, outputDir: outputDir.json }]]
6361
}
6462

0 commit comments

Comments
 (0)