Переглянути джерело

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

factor2
Hristo Terezov 8 місяці тому
джерело
коміт
326b694bf2
1 змінених файлів з 2 додано та 1 видалено
  1. 2
    1
      tests/wdio.conf.ts

+ 2
- 1
tests/wdio.conf.ts Переглянути файл

@@ -267,7 +267,8 @@ export const config: WebdriverIO.MultiremoteConfig = {
267 267
 
268 268
         // We skip the suite tests if the suite is marked as such, we used that from firefox overwrite
269 269
         // @ts-ignore
270
-        if (config?.ffExcludes.some((e: string) => minimatch(args[2][0].replace('file://', ''), `${__dirname}/${e}`))) {
270
+        if (config?.ffExcludes?.some(
271
+                (e: string) => minimatch(args[2][0].replace('file://', ''), `${__dirname}/${e}`))) {
271 272
             args[2].pop();
272 273
         }
273 274
     },

Завантаження…
Відмінити
Зберегти