From 354c7907153533a1bf014376c168cca13bb1356d Mon Sep 17 00:00:00 2001 From: GTFalcao Date: Wed, 4 Oct 2023 16:56:59 -0300 Subject: [PATCH] Adjusting test event file check --- scripts/findBadKeys.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/findBadKeys.js b/scripts/findBadKeys.js index 95593c2f89300..c23d377dfb902 100644 --- a/scripts/findBadKeys.js +++ b/scripts/findBadKeys.js @@ -23,8 +23,7 @@ const isCommonFile = (subname) => { return regex.test(subname); }; -const isTestEventFile = (subname) => - subname.split("/").pop() === "test-event.mjs"; +const isTestEventFile = (subname) => subname.includes("test-event.mjs"); const getComponentKey = (p) => { const data = fs.readFileSync(p, "utf8");