(dir: string, base: string)
| 40 | execFileSync('git', args, { cwd, stdio: 'pipe' }); |
| 41 | |
| 42 | const makeRepo = (dir: string, base: string) => { |
| 43 | fs.mkdirSync(dir, { recursive: true }); |
| 44 | runGit(dir, 'init', '-q'); |
| 45 | runGit(dir, 'config', 'user.email', 'test@test.com'); |
| 46 | runGit(dir, 'config', 'user.name', 'Test'); |
| 47 | fs.writeFileSync(path.join(dir, `${base}.ts`), `export const ${base} = 1;`); |
| 48 | runGit(dir, 'add', '-A'); |
| 49 | runGit(dir, 'commit', '-q', '-m', `${base} init`); |
| 50 | }; |
| 51 | |
| 52 | beforeEach(async () => { |
| 53 | const actual = await vi.importActual<typeof import('child_process')>('child_process'); |
no test coverage detected