(sandboxDir, relPath, content)
| 49 | } |
| 50 | |
| 51 | function writeFile(sandboxDir, relPath, content) { |
| 52 | const full = path.join(sandboxDir, relPath); |
| 53 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 54 | fs.writeFileSync(full, content || '// placeholder'); |
| 55 | } |
| 56 | |
| 57 | function fireHook(payload, sandboxDir) { |
| 58 | const input = JSON.stringify(payload); |
no outgoing calls
no test coverage detected