(run)
| 17 | } = require('../core/worktree/readiness'); |
| 18 | |
| 19 | function withTempProject(run) { |
| 20 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-readiness-')); |
| 21 | return Promise.resolve() |
| 22 | .then(() => run(dir)) |
| 23 | .finally(() => fs.rmSync(dir, { recursive: true, force: true })); |
| 24 | } |
| 25 | |
| 26 | function write(filePath, content) { |
| 27 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
no test coverage detected