diff --git a/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts b/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts index d0b1a65f3277..746a191dc38b 100644 --- a/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts +++ b/test/e2e/qa-lab/runtime/telegram-command-menu-gateway.e2e.test.ts @@ -218,14 +218,14 @@ test("registers pressure-prioritized Telegram menus through a real Gateway", asy { agentId: "qa", match: { channel: "telegram", accountId: "skill" } }, ]; cfg.plugins = { - ...(cfg.plugins ?? {}), + ...cfg.plugins, allow: [...new Set([...(cfg.plugins?.allow ?? []), LOCALIZED_PLUGIN_ID])], entries: { - ...(cfg.plugins?.entries ?? {}), + ...cfg.plugins?.entries, [LOCALIZED_PLUGIN_ID]: { enabled: true }, }, load: { - ...(cfg.plugins?.load ?? {}), + ...cfg.plugins?.load, paths: [...new Set([...(cfg.plugins?.load?.paths ?? []), localizedPluginDir])], }, }; diff --git a/test/scripts/labeler-extension-coverage.test.ts b/test/scripts/labeler-extension-coverage.test.ts index ba6f1141e716..936ab55942b0 100644 --- a/test/scripts/labeler-extension-coverage.test.ts +++ b/test/scripts/labeler-extension-coverage.test.ts @@ -17,11 +17,11 @@ const labelerPath = path.join(repoRoot, ".github/labeler.yml"); const extensionDirectories = readdirSync(extensionsRoot, { withFileTypes: true }) .filter((entry) => entry.isDirectory()) .map((entry) => entry.name) - .sort(); + .toSorted(); const extensionDirectorySet = new Set(extensionDirectories); const labeler = parse(readFileSync(labelerPath, "utf8")) as Record; const extensionGlobDirectories = Object.values(labeler) - .flatMap((rules) => rules) + .flat() .flatMap((rule) => rule["changed-files"] ?? []) .flatMap((changedFiles) => changedFiles["any-glob-to-any-file"] ?? []) .flatMap((glob) => glob.match(/^extensions\/([^/]+)\//)?.[1] ?? []);