(changelog: string)
| 16 | const MAX_BODY_BYTES = 120_000; |
| 17 | |
| 18 | function setup(changelog: string) { |
| 19 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'extract-release-notes-')); |
| 20 | fs.writeFileSync(path.join(dir, 'CHANGELOG.md'), changelog); |
| 21 | return dir; |
| 22 | } |
| 23 | |
| 24 | function run(cwd: string, version: string) { |
| 25 | return execFileSync('node', [SCRIPT, version], { |
no test coverage detected