(run)
| 18 | } = require('../core/telemetry/integrity'); |
| 19 | |
| 20 | function withTempProject(run) { |
| 21 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-integrity-')); |
| 22 | try { |
| 23 | run(dir); |
| 24 | } finally { |
| 25 | fs.rmSync(dir, { recursive: true, force: true }); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | function readJsonl(filePath) { |
| 30 | return fs.readFileSync(filePath, 'utf8').trim().split(/\r?\n/).map((line) => JSON.parse(line)); |
no test coverage detected