MCPcopy Create free account
hub / github.com/code-pushup/cli / parseEnv

Function parseEnv

packages/nx-plugin/src/executors/internal/env.ts:3–9  ·  view source on GitHub ↗
(env: Partial<Record<string, string>>)

Source from the content-addressed store, hash-verified

1import type { UploadConfig } from '@code-pushup/models';
2
3export 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}

Callers 2

uploadConfigFunction · 0.85
env.unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected