From c9e2fe22468678be31725d5e2900e9783cabb9ca Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 18 Feb 2022 12:31:46 +0100 Subject: [PATCH] fix: filter browsers after applying string transformation --- src/config/jest-playwright.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/jest-playwright.ts b/src/config/jest-playwright.ts index 2ca2b032..02edac1f 100644 --- a/src/config/jest-playwright.ts +++ b/src/config/jest-playwright.ts @@ -17,8 +17,8 @@ export const getJestConfig = () => { testEnvironmentOptions: { 'jest-playwright': { browsers: TEST_BROWSERS.split(',') - .filter(Boolean) - .map((p) => p.trim().toLowerCase()), + .map((p) => p.trim().toLowerCase()) + .filter(Boolean), }, }, };