()
| 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 |
no test coverage detected