perf(test): skip setup promotion metadata fallback

This commit is contained in:
Peter Steinberger
2026-04-22 07:10:04 +01:00
parent 053147451b
commit fd2c883673
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ describe("setup promotion helpers", () => {
const keys = resolveSingleAccountKeysToMove({
channelKey: "demo",
channel: {
defaultAccount: "ops",
dmPolicy: "allowlist",
allowFrom: ["+15551234567"],
groupPolicy: "allowlist",

View File

@@ -102,7 +102,10 @@ export function resolveSingleAccountKeysToMove(params: {
Object.keys((params.channel.accounts as Record<string, unknown>) ?? {}).filter(Boolean).length >
0;
const entries = Object.entries(params.channel)
.filter(([key, value]) => key !== "accounts" && key !== "enabled" && value !== undefined)
.filter(
([key, value]) =>
key !== "accounts" && key !== "defaultAccount" && key !== "enabled" && value !== undefined,
)
.map(([key]) => key);
if (entries.length === 0) {
return [];