(repo: string, file: string, content: string, msg: string)
| 25 | } |
| 26 | |
| 27 | function writeAndCommit(repo: string, file: string, content: string, msg: string): void { |
| 28 | const fp = path.join(repo, file); |
| 29 | // Sync write for test setup speed |
| 30 | require('fs').writeFileSync(fp, content); |
| 31 | gitSetup(repo, ['add', file]); |
| 32 | gitSetup(repo, ['commit', '-m', msg]); |
| 33 | } |
| 34 | |
| 35 | describe('classify-commits', () => { |
| 36 | const base = { sha: 'abc1234', date: '2026-05-28', author: 'sev', body: '' }; |
no test coverage detected