From d1cb7ebf4164e3a1969a1324faddde0162eb345a Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 21 Nov 2023 16:59:35 -0800 Subject: [PATCH] fix: apply overrides correctly when using mjs config with a tunnel --- src/sauce.config.mjs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sauce.config.mjs b/src/sauce.config.mjs index bb994e60..29f13b53 100644 --- a/src/sauce.config.mjs +++ b/src/sauce.config.mjs @@ -71,9 +71,17 @@ if ('HTTP_PROXY' in process.env && process.env.HTTP_PROXY !== '') { server: process.env.HTTP_PROXY, }; - overrides.use.contextOptions = { proxy, ignoreHTTPSErrors: true }; + overrides.use.contextOptions = { + ...overrides.use.contextOptions, + proxy, + ignoreHTTPSErrors: true, + }; // Need to set the browser launch option as well, it is a hard requirement when testing chromium + windows. - overrides.use.launchOptions = { proxy, ignoreHTTPSErrors: true }; + overrides.use.launchOptions = { + ...overrides.use.launchOptions, + proxy, + ignoreHTTPSErrors: true, + }; } function arrMerger(objValue, srcValue) {