(args: string[], cwd?: string)
| 43 | } |
| 44 | |
| 45 | function git(args: string[], cwd?: string) { |
| 46 | const res = spawnSync('git', args, { cwd: cwd || tmpHome, encoding: 'utf-8' }); |
| 47 | return { stdout: res.stdout || '', stderr: res.stderr || '', status: res.status ?? -1 }; |
| 48 | } |
| 49 | |
| 50 | beforeEach(() => { |
| 51 | tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'brain-sync-home-')); |
no test coverage detected