test(cli): avoid secret-scan false positives

This commit is contained in:
mastertyko 2026-04-11 18:12:09 +02:00
parent fee16a70c3
commit 656ad2791a

View file

@ -55,7 +55,7 @@ test("shouldMigrateAnthropicToClaudeCode blocks migration for direct-key users",
test("shouldMigrateAnthropicToClaudeCode allows OAuth-only anthropic users", () => {
assert.equal(
shouldMigrateAnthropicToClaudeCode({
authStorage: makeAuthStorage([{ type: "oauth", accessToken: "oauth-token" }]) as any,
authStorage: makeAuthStorage([{ type: "oauth" }]) as any,
isClaudeCodeReady: true,
defaultProvider: "anthropic",
env: {} as NodeJS.ProcessEnv,
@ -67,7 +67,7 @@ test("shouldMigrateAnthropicToClaudeCode allows OAuth-only anthropic users", ()
test("shouldMigrateAnthropicToClaudeCode stays off for other providers", () => {
assert.equal(
shouldMigrateAnthropicToClaudeCode({
authStorage: makeAuthStorage([{ type: "oauth", accessToken: "oauth-token" }]) as any,
authStorage: makeAuthStorage([{ type: "oauth" }]) as any,
isClaudeCodeReady: true,
defaultProvider: "openai",
env: {} as NodeJS.ProcessEnv,