(setupFn)
| 43 | // at the .evomap dir directly (not at a parent containing one) — that's |
| 44 | // the contract `paths.getEvomapDir()` exposes. |
| 45 | function makeFakeEvomapDir(setupFn) { |
| 46 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'evolver-legacy-nodeid-')); |
| 47 | if (setupFn) setupFn(dir); |
| 48 | return dir; |
| 49 | } |
| 50 | |
| 51 | function makeStore(initial = {}) { |
| 52 | const state = { ...initial }; |
no outgoing calls
no test coverage detected