(file: string, content: string)
| 35 | } |
| 36 | |
| 37 | function write(file: string, content: string): void { |
| 38 | fs.mkdirSync(path.dirname(file), { recursive: true }); |
| 39 | fs.writeFileSync(file, content); |
| 40 | } |
| 41 | |
| 42 | /** A repo at `dir` with `tracked` committed, then `untracked` written for `.gitignore` to hide. */ |
| 43 | function makeRepo(dir: string, tracked: Record<string, string>, untracked: Record<string, string> = {}): void { |
no outgoing calls
no test coverage detected