From 326b694bf222a5054d1dff7a7f7679edffb06a8c Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Tue, 4 Feb 2025 08:13:07 -0600 Subject: [PATCH] fix(tests): wdio.cong ffExcludes undefined error. --- tests/wdio.conf.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts index f2cf75822d..6f7789453a 100644 --- a/tests/wdio.conf.ts +++ b/tests/wdio.conf.ts @@ -267,7 +267,8 @@ export const config: WebdriverIO.MultiremoteConfig = { // We skip the suite tests if the suite is marked as such, we used that from firefox overwrite // @ts-ignore - if (config?.ffExcludes.some((e: string) => minimatch(args[2][0].replace('file://', ''), `${__dirname}/${e}`))) { + if (config?.ffExcludes?.some( + (e: string) => minimatch(args[2][0].replace('file://', ''), `${__dirname}/${e}`))) { args[2].pop(); } },