MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getApiKeyOrSkip

Function getApiKeyOrSkip

agents/e2e/base-deep.e2e.test.ts:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 const getApiKeyOrSkip = (): string | null => {
54 const apiKey =
55 process.env[API_KEY_ENV_VAR] ?? getUserCredentials()?.authToken
56 if (!apiKey) {
57 console.warn(
58 `${API_KEY_ENV_VAR} is not set; skipping base-deep integration test.`,
59 )
60 return null
61 }
62 return apiKey
63 }
64
65 const isAuthenticationError = (error: unknown) => {
66 if (!(error instanceof Error)) return false

Callers 1

Calls 1

getUserCredentialsFunction · 0.90

Tested by

no test coverage detected