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

Function resetEnv

src/constants/product.test.ts:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11) as Record<(typeof envKeys)[number], string | undefined>
12
13function resetEnv() {
14 for (const key of envKeys) {
15 const value = originalEnv[key]
16 if (value === undefined) {
17 delete process.env[key]
18 } else {
19 process.env[key] = value
20 }
21 }
22}
23
24beforeEach(() => {
25 resetEnv()

Callers 1

product.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected