()
| 22 | const dirs: string[] = []; |
| 23 | |
| 24 | function makeRepo(): string { |
| 25 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-1213-')); |
| 26 | dirs.push(dir); |
| 27 | git(dir, ['init']); |
| 28 | git(dir, ['config', 'user.email', 'test@example.com']); |
| 29 | git(dir, ['config', 'user.name', 'test']); |
| 30 | fs.writeFileSync(path.join(dir, 'root.js'), 'function foo() {}\n'); |
| 31 | git(dir, ['add', 'root.js']); |
| 32 | git(dir, ['commit', '-m', 'init']); |
| 33 | return dir; |
| 34 | } |
| 35 | |
| 36 | afterEach(() => { |
| 37 | while (dirs.length) { |
no test coverage detected