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

Function restoreEnvVar

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

Source from the content-addressed store, hash-verified

19const originalUserType = process.env.USER_TYPE
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
29async function writeTeamFixture(
30 teamName = 'team-alpha',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected