MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / setEnv

Function setEnv

packages/engine/src/config.test.ts:8–11  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

6 const savedEnv = new Map<string, string | undefined>();
7
8 function setEnv(key: string, value: string) {
9 savedEnv.set(key, process.env[key]);
10 process.env[key] = value;
11 }
12
13 beforeEach(() => {
14 savedEnv.clear();

Callers 1

config.test.tsFile · 0.70

Calls 1

setMethod · 0.65

Tested by

no test coverage detected