Skip to content

Commit 7076aaf

Browse files
author
Tian Feng
authored
[DEVX-1833] Fix merging array issue in playwright config (#159)
* [DEVX-1833] Fix merging array issue in playwright config * empty
1 parent 4e6dd3c commit 7076aaf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sauce.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ if ('HTTP_PROXY' in process.env && process.env.HTTP_PROXY !== '') {
5757
overrides.use.launchOptions = { proxy, ignoreHTTPSErrors: true };
5858
}
5959

60-
module.exports = _.merge(userConfig, overrides);
60+
function arrMerger (objValue, srcValue) {
61+
if (_.isArray(objValue)) {
62+
return objValue.concat(srcValue);
63+
}
64+
}
65+
66+
module.exports = _.mergeWith(userConfig, overrides, arrMerger);

0 commit comments

Comments
 (0)