()
| 29 | // ─── helpers ──────────────────────────────────────────────────────────────── |
| 30 | |
| 31 | function freshTmpRoot() { |
| 32 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'smallcode-contract-')); |
| 33 | // The store reads .smallcode/contracts under cwd. Each test uses a fresh dir. |
| 34 | return dir; |
| 35 | } |
| 36 | |
| 37 | // ─── state model ──────────────────────────────────────────────────────────── |
| 38 |