(run)
| 11 | const { render } = require('./verification-plan'); |
| 12 | |
| 13 | function withTempProject(run) { |
| 14 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-verification-plan-')); |
| 15 | try { |
| 16 | return run(dir); |
| 17 | } finally { |
| 18 | fs.rmSync(dir, { recursive: true, force: true }); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | assert.equal(profileForFiles(['hooks_src/protect-files.js'], { test: 'node test.js' }).id, 'hook-runtime'); |
| 23 | assert(profileForFiles(['hooks_src/protect-files.js'], { test: 'node test.js' }).commands.includes('node scripts/verify-hooks.js')); |
no test coverage detected