From af36a441de65d440e1ca28ec8385f32cac132dbe Mon Sep 17 00:00:00 2001 From: Harshit Agrawal Date: Mon, 26 Jun 2023 14:06:04 +0530 Subject: [PATCH] moving nightwatch format to last --- lib/runner/test-runners/cucumber.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] : [])) ] };