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

Function resetEnv

src/services/oauth/client.test.ts:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33const originalOauthAccount = getGlobalConfig().oauthAccount
34
35function resetEnv() {
36 for (const key of envKeys) {
37 const value = originalEnv[key]
38 if (value === undefined) {
39 delete process.env[key]
40 } else {
41 process.env[key] = value
42 }
43 }
44}
45
46beforeEach(() => {
47 resetEnv()

Callers 1

client.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected