(url)
| 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'; |
no outgoing calls
no test coverage detected