MCPcopy Create free account
hub / github.com/EvoMap/evolver / teardown

Function teardown

test/runtimePaths.test.js:116–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 setPlatform('win32');
115 }
116 function teardown() {
117 for (const k of WIN_ENV_KEYS) {
118 if (_savedEnv[k] === undefined) delete process.env[k];
119 else process.env[k] = _savedEnv[k];
120 }
121 restorePlatform();
122 }
123
124 it('includes %APPDATA%\\npm\\node_modules (default npm-global on Windows)', () => {
125 setupWin();

Callers 1

Calls 1

restorePlatformFunction · 0.70

Tested by

no test coverage detected