diff --git a/packages/wrangler/src/__tests__/core/command-registration.test.ts b/packages/wrangler/src/__tests__/core/command-registration.test.ts index 39815b4ed681..650efae95c61 100644 --- a/packages/wrangler/src/__tests__/core/command-registration.test.ts +++ b/packages/wrangler/src/__tests__/core/command-registration.test.ts @@ -191,8 +191,6 @@ describe("Command Registration", () => { wrangler pubsub 📮 Manage Pub/Sub brokers [private beta] wrangler dispatch-namespace 🏗️ Manage dispatch namespaces wrangler ai 🤖 Manage AI models - wrangler pipelines 🚰 Manage Worker Pipelines [open beta] - wrangler login 🔓 Login to Cloudflare wrangler logout 🚪 Logout from Cloudflare wrangler whoami 🕵️ Retrieve your user information diff --git a/packages/wrangler/src/core/register-commands.ts b/packages/wrangler/src/core/register-commands.ts index 7e33d03b6efb..d1ecfdffaab3 100644 --- a/packages/wrangler/src/core/register-commands.ts +++ b/packages/wrangler/src/core/register-commands.ts @@ -233,8 +233,9 @@ function resolveDefinitionChain( ) { const chain: InternalDefinition[] = []; const stringifyChain = (...extra: InternalDefinition[]) => - [...chain, ...extra].map((def) => `"${def.command}"`).join(" => "); + [...chain, ...extra].map(({ command }) => `"${command}"`).join(" => "); + // eslint-disable-next-line no-constant-condition while (true) { if (chain.includes(def)) { throw new CommandRegistrationError(