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

Function restoreEnv

src/bridge/createSession.auth.test.ts:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47let tempConfigDir = ''
48
49function restoreEnv(): void {
50 for (const key of envKeys) {
51 const value = originalEnv[key]
52 if (value === undefined) {
53 delete process.env[key]
54 } else {
55 process.env[key] = value
56 }
57 }
58}
59
60function setStableTestRuntime(): void {
61 process.env.NODE_ENV = 'production'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected