MCPcopy Create free account
hub / github.com/anomalyco/opencode / restoreEnv

Function restoreEnv

packages/opencode/test/control-plane/workspace.test.ts:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97function restoreEnv() {
98 Object.entries(originalEnv).forEach(([key, value]) => {
99 if (value === undefined) {
100 delete process.env[key]
101 return
102 }
103 process.env[key] = value
104 })
105}
106
107beforeEach(() => {
108 restoreEnv()

Callers 1

workspace.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected