diff --git a/lib/runner/test-runners/cucumber.js b/lib/runner/test-runners/cucumber.js index 8755f957e3..597b8fcecf 100644 --- a/lib/runner/test-runners/cucumber.js +++ b/lib/runner/test-runners/cucumber.js @@ -158,8 +158,8 @@ class CucumberSuite extends TestSuite { ...options, ...this.argv, format: [ - ...(Array.isArray(options.format) ? options.format : (isString(options.format) ? [options.format] : [])), - ...(Array.isArray(this.argv.format) ? this.argv.format : (isString(this.argv.format) ? [this.argv.format] : [])) + ...(Array.isArray(this.argv.format) ? this.argv.format : (isString(this.argv.format) ? [this.argv.format] : [])), + ...(Array.isArray(options.format) ? options.format : (isString(options.format) ? [options.format] : [])) ] };