MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / restoreEnv

Function restoreEnv

common/src/util/__tests__/analytics-sampling.test.ts:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18function restoreEnv() {
19 for (const [key, value] of Object.entries(ORIGINAL_ENV)) {
20 if (value === undefined) {
21 delete process.env[key]
22 } else {
23 process.env[key] = value
24 }
25 }
26}
27
28describe('analytics sampling', () => {
29 afterEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected