(env: Partial<Record<string, string>>)
| 1 | import type { UploadConfig } from '@code-pushup/models'; |
| 2 | |
| 3 | export function parseEnv(env: Partial<Record<string, string>>) { |
| 4 | return { |
| 5 | ...(env.CP_API_KEY && { |
| 6 | apiKey: env.CP_API_KEY, |
| 7 | }), |
| 8 | } satisfies Partial<UploadConfig>; |
| 9 | } |
no outgoing calls
no test coverage detected