From 4ad20068113dded8e4e3fcaca87ddeff40f60be1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 11 Apr 2026 00:29:00 +0100 Subject: [PATCH] test: simplify provider auth error messages --- src/commands/onboard-non-interactive.provider-auth.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/onboard-non-interactive.provider-auth.test.ts b/src/commands/onboard-non-interactive.provider-auth.test.ts index 987703fc15c..9eb0027f7c2 100644 --- a/src/commands/onboard-non-interactive.provider-auth.test.ts +++ b/src/commands/onboard-non-interactive.provider-auth.test.ts @@ -1388,7 +1388,7 @@ describe("onboard (non-interactive): provider auth", () => { thrown = error as Error; } expect(thrown).toBeDefined(); - const message = String(thrown?.message ?? ""); + const message = thrown?.message ?? ""; expect(message).toContain( `${flagName} cannot be used with --secret-input-mode ref unless ${envVar} is set in env.`, ); @@ -1631,7 +1631,7 @@ describe("onboard (non-interactive): provider auth", () => { thrown = error as Error; } expect(thrown).toBeDefined(); - const message = String(thrown?.message ?? ""); + const message = thrown?.message ?? ""; expect(message).toContain( "--custom-api-key cannot be used with --secret-input-mode ref unless CUSTOM_API_KEY is set in env.", );