MCPcopy Create free account
hub / github.com/Noumena-Network/code / restoreEnvVar

Function restoreEnvVar

src/utils/agentSwarmsEnabled.test.ts:21–27  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

19}
20
21function restoreEnvVar(key: string, value: string | undefined): void {
22 if (value === undefined) {
23 delete process.env[key]
24 } else {
25 process.env[key] = value
26 }
27}
28
29function setGrowthBookOverrides(overrides: Record<string, unknown>): void {
30 process.env.USER_TYPE = 'ant'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected