diff --git a/src/service.ts b/src/service.ts index b6134a20..6b537c6c 100644 --- a/src/service.ts +++ b/src/service.ts @@ -161,7 +161,9 @@ export default class VSCodeWorkerService implements Services.ServiceInstance { const args = Object.entries({ ...customArgs, ...this._vscodeOptions.vscodeArgs }).reduce( (prev, [key, value]) => [ ...prev, - `--${decamelize(key, { separator: '-' })}${getValueSuffix(value)}` + Array.isArray(value) ? value.reduce((all: string, val) => { + return all + `--${decamelize(key, { separator: '-' })}${getValueSuffix(val)} `; + }, "").trim() : `--${decamelize(key, { separator: '-' })}${getValueSuffix(value)}` ], [] as string[] ) diff --git a/src/types.ts b/src/types.ts index 673f01c1..77a3ed62 100644 --- a/src/types.ts +++ b/src/types.ts @@ -52,7 +52,7 @@ export interface ServerOptions { port: number } -export type ArgsParams = Record +export type ArgsParams = Record /** * wdio-vscode-service options