MCPcopy
hub / github.com/callstack/agent-device / restoreEnv

Function restoreEnv

src/daemon/__tests__/runtime-hints.test.ts:165–171  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

163}
164
165function restoreEnv(key: string, value: string | undefined): void {
166 if (value === undefined) {
167 delete process.env[key];
168 return;
169 }
170 process.env[key] = value;
171}
172
173function assertInvalidArgsAppError(error: unknown, message: string): boolean {
174 assert.ok(error instanceof AppError);

Callers 5

withMockedAdbFunction · 0.70
withMockedXcrunFunction · 0.70
runCliCaptureFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected