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

Function withHome

test/adapters.test.js:70–78  ·  view source on GitHub ↗
(home, fn)

Source from the content-addressed store, hash-verified

68}
69
70function withHome(home, fn) {
71 const originalHome = os.homedir;
72 os.homedir = () => home;
73 try {
74 return fn();
75 } finally {
76 os.homedir = originalHome;
77 }
78}
79
80// -- hookAdapter --
81

Callers 1

adapters.test.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected