fix(tests): wdio.cong ffExcludes undefined error.

This commit is contained in:
Hristo Terezov
2025-02-04 08:13:07 -06:00
committed by Дамян Минков
parent 9e1f3de4e5
commit 326b694bf2

View File

@@ -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();
}
},