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

Function writeProxySettings

test/atpProxyRouting.test.js:131–139  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

129 });
130
131 function writeProxySettings(url) {
132 // settings.js uses os.homedir()/.evolver/settings.json. os.homedir()
133 // on linux reads $HOME which we've swapped to tmpHome above.
134 const settingsDir = path.join(tmpHome, '.evolver');
135 fs.mkdirSync(settingsDir, { recursive: true });
136 fs.writeFileSync(path.join(settingsDir, 'settings.json'), JSON.stringify({
137 proxy: { url, pid: process.pid, started_at: new Date().toISOString() },
138 }));
139 }
140
141 it('routes placeOrder through proxy when EVOMAP_PROXY=1 and proxy is running', async () => {
142 process.env.EVOMAP_PROXY = '1';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected